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:
parent
696f7bccfe
commit
aec2a2cbc2
@ -1,6 +1,7 @@
|
|||||||
load("//dev-infra/benchmark/ng_rollup_bundle:ng_rollup_bundle.bzl", "ng_rollup_bundle")
|
load("//dev-infra/benchmark/ng_rollup_bundle:ng_rollup_bundle.bzl", "ng_rollup_bundle")
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
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")
|
load(":benchmark_test.bzl", "benchmark_test")
|
||||||
|
|
||||||
def copy_default_file(origin, destination):
|
def copy_default_file(origin, destination):
|
||||||
@ -113,7 +114,7 @@ def component_benchmark(
|
|||||||
tsconfig = "//dev-infra/benchmark/component_benchmark:tsconfig-e2e.json",
|
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(
|
ng_rollup_bundle(
|
||||||
name = app_main,
|
name = app_main,
|
||||||
entry_point = entry_point,
|
entry_point = entry_point,
|
||||||
@ -130,7 +131,7 @@ def component_benchmark(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# The server for our application.
|
# The server for our application.
|
||||||
ts_devserver(
|
concatjs_devserver(
|
||||||
name = server,
|
name = server,
|
||||||
bootstrap = ["//packages/zone.js/bundles:zone.umd.js"],
|
bootstrap = ["//packages/zone.js/bundles:zone.umd.js"],
|
||||||
port = 4200,
|
port = 4200,
|
||||||
|
@ -28,8 +28,8 @@ function log_verbose(...m) {
|
|||||||
const useBuildOptimizer = TMPL_build_optimizer;
|
const useBuildOptimizer = TMPL_build_optimizer;
|
||||||
const bannerFile = TMPL_banner_file;
|
const bannerFile = TMPL_banner_file;
|
||||||
const ivyEnabled = 'TMPL_angular_ivy_enabled' === 'True';
|
const ivyEnabled = 'TMPL_angular_ivy_enabled' === 'True';
|
||||||
// `bazel_stamp_file` is a substitution that is applied by `@bazel/rollup`.
|
// `bazel_version_file` is a substitution that is applied by `@bazel/rollup`.
|
||||||
const stampDataFile = bazel_stamp_file;
|
const stampDataFile = bazel_version_file;
|
||||||
|
|
||||||
log_verbose(`running with
|
log_verbose(`running with
|
||||||
cwd: ${process.cwd()}
|
cwd: ${process.cwd()}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
|
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")
|
load("//dev-infra/benchmark/component_benchmark:component_benchmark.bzl", "component_benchmark")
|
||||||
|
|
||||||
sass_binary(
|
sass_binary(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user