fix(dev-infra): update build tooling for latest changes in rules_nodejs (#40710)

Update the build tooling to handle the changes in the latest version of rules_nodejs.

PR Close #40710
This commit is contained in:
Joey Perrott 2021-02-04 14:46:29 -08:00 committed by Alex Rickabaugh
parent 696f7bccfe
commit aec2a2cbc2
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,7 @@
load("//dev-infra/benchmark/ng_rollup_bundle:ng_rollup_bundle.bzl", "ng_rollup_bundle")
load("//tools:defaults.bzl", "ng_module")
load("@npm//@bazel/typescript:index.bzl", "ts_devserver", "ts_library")
load("@npm//@bazel/typescript:index.bzl", "ts_library")
load("@npm//@bazel/concatjs:index.bzl", "concatjs_devserver")
load(":benchmark_test.bzl", "benchmark_test")
def copy_default_file(origin, destination):
@ -113,7 +114,7 @@ def component_benchmark(
tsconfig = "//dev-infra/benchmark/component_benchmark:tsconfig-e2e.json",
)
# Bundle the application (needed by ts_devserver).
# Bundle the application (needed by concatjs_devserver).
ng_rollup_bundle(
name = app_main,
entry_point = entry_point,
@ -130,7 +131,7 @@ def component_benchmark(
)
# The server for our application.
ts_devserver(
concatjs_devserver(
name = server,
bootstrap = ["//packages/zone.js/bundles:zone.umd.js"],
port = 4200,

View File

@ -28,8 +28,8 @@ function log_verbose(...m) {
const useBuildOptimizer = TMPL_build_optimizer;
const bannerFile = TMPL_banner_file;
const ivyEnabled = 'TMPL_angular_ivy_enabled' === 'True';
// `bazel_stamp_file` is a substitution that is applied by `@bazel/rollup`.
const stampDataFile = bazel_stamp_file;
// `bazel_version_file` is a substitution that is applied by `@bazel/rollup`.
const stampDataFile = bazel_version_file;
log_verbose(`running with
cwd: ${process.cwd()}

View File

@ -1,6 +1,6 @@
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_binary")
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
load("//dev-infra/benchmark/component_benchmark:component_benchmark.bzl", "component_benchmark")
sass_binary(