71 lines
1.6 KiB
Python
71 lines
1.6 KiB
Python
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_rollup_bundle", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "injection",
|
|
srcs = [
|
|
"index.ts",
|
|
"usage.ts",
|
|
],
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
deps = [
|
|
"//packages/core",
|
|
],
|
|
)
|
|
|
|
ng_rollup_bundle(
|
|
name = "bundle",
|
|
# TODO(alexeagle): This is inconsistent.
|
|
# We try to teach users to always have their workspace at the start of a
|
|
# path, to disambiguate from other workspaces.
|
|
# Here, the rule implementation is looking in an execroot where the layout
|
|
# has an "external" directory for external dependencies.
|
|
# This should probably start with "angular/" and let the rule deal with it.
|
|
entry_point = "packages/core/test/bundling/injection/index.js",
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
deps = [
|
|
":injection",
|
|
"//packages/core",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["*_spec.ts"]),
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
deps = [
|
|
":injection",
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/core/testing",
|
|
"//packages/private/testing",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
deps = [":test_lib"],
|
|
)
|
|
|
|
js_expected_symbol_test(
|
|
name = "symbol_test",
|
|
src = ":bundle.min_debug.js",
|
|
golden = ":bundle.golden_symbols.json",
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
)
|