
Optimizations to skip compiling source files that had not changed did not account for the case where only a resource file changes, such as an external template or style file. Now we track such dependencies and trigger a recompilation if any of the previously tracked resources have changed. This will require a change on the CLI side to provide the list of resource files that changed to trigger the current compilation by implementing `CompilerHost.getModifiedResourceFiles()`. Closes #30947 PR Close #30954
34 lines
926 B
Python
34 lines
926 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
ts_library(
|
|
name = "ngtsc_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
deps = [
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"//packages/compiler-cli/src/ngtsc/diagnostics",
|
|
"//packages/compiler-cli/src/ngtsc/path",
|
|
"//packages/compiler-cli/src/ngtsc/routing",
|
|
"//packages/compiler-cli/src/ngtsc/util",
|
|
"//packages/compiler-cli/test:test_utils",
|
|
"@npm//@types/source-map",
|
|
"@npm//source-map",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "ngtsc",
|
|
bootstrap = ["angular/tools/testing/init_node_no_angular_spec.js"],
|
|
data = [
|
|
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
|
|
],
|
|
shard_count = 4,
|
|
deps = [
|
|
":ngtsc_lib",
|
|
"//tools/testing:node_no_angular",
|
|
"@npm//minimist",
|
|
],
|
|
)
|