2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
2018-04-06 12:53:10 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ngtsc_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-09-25 18:35:03 -04:00
|
|
|
srcs = glob(["**/*.ts"]),
|
2018-04-06 12:53:10 -04:00
|
|
|
deps = [
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/compiler-cli",
|
2019-03-08 14:32:49 -05:00
|
|
|
"//packages/compiler-cli/src/ngtsc/diagnostics",
|
2019-06-06 15:22:32 -04:00
|
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
|
|
"//packages/compiler-cli/src/ngtsc/file_system/testing",
|
2019-06-19 20:23:59 -04:00
|
|
|
"//packages/compiler-cli/src/ngtsc/indexer",
|
2018-11-16 11:54:43 -05:00
|
|
|
"//packages/compiler-cli/src/ngtsc/routing",
|
2019-02-08 17:10:21 -05:00
|
|
|
"//packages/compiler-cli/src/ngtsc/util",
|
2018-04-06 12:53:10 -04:00
|
|
|
"//packages/compiler-cli/test:test_utils",
|
2019-06-06 15:22:32 -04:00
|
|
|
"//packages/compiler-cli/test/helpers",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//source-map",
|
|
|
|
"@npm//typescript",
|
2018-04-06 12:53:10 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "ngtsc",
|
2019-06-06 15:22:32 -04:00
|
|
|
timeout = "long",
|
2018-04-06 12:53:10 -04:00
|
|
|
data = [
|
|
|
|
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
|
|
|
|
],
|
2019-03-08 19:35:36 -05:00
|
|
|
shard_count = 4,
|
2020-01-10 16:39:52 -05:00
|
|
|
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
2018-04-06 12:53:10 -04:00
|
|
|
deps = [
|
|
|
|
":ngtsc_lib",
|
2020-01-10 16:39:52 -05:00
|
|
|
"//tools/testing:node_no_angular_es5",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//minimist",
|
2018-04-06 12:53:10 -04:00
|
|
|
],
|
|
|
|
)
|