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",
|
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-02-20 12:54:42 -05:00
|
|
|
"@npm//@types/source-map",
|
|
|
|
"@npm//source-map",
|
|
|
|
"@npm//typescript",
|
2018-04-06 12:53:10 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
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",
|
|
|
|
],
|
2019-03-08 19:35:36 -05:00
|
|
|
shard_count = 4,
|
2018-04-06 12:53:10 -04:00
|
|
|
deps = [
|
|
|
|
":ngtsc_lib",
|
|
|
|
"//tools/testing:node_no_angular",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//minimist",
|
2018-04-06 12:53:10 -04:00
|
|
|
],
|
|
|
|
)
|