2017-10-13 12:03:28 -04:00
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ngc_test_lib",
|
|
|
|
srcs = [
|
|
|
|
"index_test.ts",
|
|
|
|
"test_support.ts",
|
|
|
|
"tsconfig_template.ts",
|
|
|
|
],
|
2017-12-06 09:56:49 -05:00
|
|
|
tsconfig = ":tsconfig.json",
|
2017-10-13 12:03:28 -04:00
|
|
|
deps = [
|
|
|
|
# BEGIN-INTERNAL
|
|
|
|
# Only needed when compiling within the Angular repo.
|
|
|
|
# Users will get this dependency from node_modules.
|
|
|
|
"@//packages/compiler-cli",
|
|
|
|
# END-INTERNAL
|
2017-12-06 09:56:49 -05:00
|
|
|
"//src/ngc-wrapped:ngc_lib",
|
2017-10-13 12:03:28 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
# We need a filegroup so that we can refer
|
|
|
|
# .d.ts files (by default, jasmine_node_test would get the .js files).
|
|
|
|
filegroup(
|
|
|
|
name = "angular_core",
|
2017-12-06 09:56:49 -05:00
|
|
|
srcs = ["@//packages/core"],
|
2017-10-13 12:03:28 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "ngc_test",
|
2017-12-06 09:56:49 -05:00
|
|
|
size = "small",
|
2017-10-13 12:03:28 -04:00
|
|
|
srcs = [":ngc_test_lib"],
|
|
|
|
data = [
|
|
|
|
":angular_core",
|
|
|
|
"//test/ngc-wrapped/empty:empty_tsconfig.json",
|
|
|
|
"//test/ngc-wrapped/empty:tsconfig.json",
|
2017-12-06 09:56:49 -05:00
|
|
|
"@build_bazel_rules_typescript//internal:worker_protocol.proto",
|
2017-10-13 12:03:28 -04:00
|
|
|
],
|
|
|
|
)
|