2018-02-16 11:45:21 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_rollup_bundle", "ts_library")
|
2018-02-16 11:45:21 -05:00
|
|
|
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "injection",
|
|
|
|
srcs = [
|
|
|
|
"index.ts",
|
|
|
|
"usage.ts",
|
|
|
|
],
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"ivy-only",
|
|
|
|
"no-ivy-jit",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
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",
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"ivy-only",
|
|
|
|
"no-ivy-jit",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
deps = [
|
|
|
|
":injection",
|
|
|
|
"//packages/core",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-02-16 11:45:21 -05:00
|
|
|
srcs = glob(["*_spec.ts"]),
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"ivy-only",
|
|
|
|
"no-ivy-jit",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
deps = [
|
|
|
|
":injection",
|
|
|
|
"//packages:types",
|
|
|
|
"//packages/core/testing",
|
2018-07-27 16:49:22 -04:00
|
|
|
"//packages/private/testing",
|
2018-02-16 11:45:21 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"ivy-only",
|
|
|
|
"no-ivy-jit",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
deps = [":test_lib"],
|
|
|
|
)
|
|
|
|
|
|
|
|
js_expected_symbol_test(
|
|
|
|
name = "symbol_test",
|
|
|
|
src = ":bundle.min_debug.js",
|
|
|
|
golden = ":bundle.golden_symbols.json",
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"ivy-only",
|
|
|
|
"no-ivy-jit",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
)
|