build: add history-server to @angular/bazel schematics (#32889)

The history_server rule is not longer shipped with rules_nodejs as it has been replaced by auto-generated rule `load("@npm//history-server:index.bzl", "history_server")` which requires the user to add history-server to their package.json.

PR Close #32889
This commit is contained in:
Greg Magolan 2019-10-05 09:12:47 -07:00 committed by Alex Rickabaugh
parent e1d07b2fd2
commit 64823f561c
2 changed files with 3 additions and 1 deletions

View File

@ -2,8 +2,9 @@ package(default_visibility = ["//visibility:public"])
load("@npm_angular_bazel//:index.bzl", "ng_module") load("@npm_angular_bazel//:index.bzl", "ng_module")
load("@npm_bazel_karma//:index.bzl", "ts_web_test_suite") load("@npm_bazel_karma//:index.bzl", "ts_web_test_suite")
load("@build_bazel_rules_nodejs//:index.bzl", "rollup_bundle", "history_server") load("@build_bazel_rules_nodejs//:index.bzl", "rollup_bundle")
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package") load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
load("@npm//history-server:index.bzl", "history_server")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver", "ts_library") load("@npm_bazel_typescript//:index.bzl", "ts_devserver", "ts_library")
load("@io_bazel_rules_sass//:defs.bzl", "multi_sass_binary", "sass_binary") load("@io_bazel_rules_sass//:defs.bzl", "multi_sass_binary", "sass_binary")

View File

@ -53,6 +53,7 @@ function addDevDependenciesToPackageJson(options: Schema) {
'@bazel/karma': '0.38.1', '@bazel/karma': '0.38.1',
'@bazel/protractor': '0.38.1', '@bazel/protractor': '0.38.1',
'@bazel/typescript': '0.38.1', '@bazel/typescript': '0.38.1',
'history-server': '^1.3.1',
}; };
const recorder = host.beginUpdate(packageJson); const recorder = host.beginUpdate(packageJson);