The major one that affects the angular repo is the removal of the bootstrap attribute in nodejs_binary, nodejs_test and jasmine_node_test in favor of using templated_args --node_options=--require=/path/to/script. The side-effect of this is that the bootstrap script does not get the require.resolve patches with explicitly loading the targets _loader.js file. PR Close #34589
37 lines
852 B
Python
37 lines
852 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ts_library")
|
|
|
|
ng_module(
|
|
name = "aot_routing_module",
|
|
testonly = True,
|
|
srcs = ["aot_router_module.ts"],
|
|
generate_ve_shims = True,
|
|
deps = [
|
|
"//packages/core",
|
|
"//packages/router",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "aot_test_lib",
|
|
testonly = True,
|
|
srcs = ["aot_router_bootstrap.spec.ts"],
|
|
deps = [
|
|
":aot_routing_module",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/router",
|
|
"//packages/router/testing",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
|
deps = [
|
|
":aot_test_lib",
|
|
"//tools/testing:node",
|
|
"//tools/testing:node_es5",
|
|
],
|
|
)
|