2018-02-16 11:45:21 -05:00
|
|
|
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
2019-01-16 04:19:01 -05:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_rollup_bundle", "ts_library")
|
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
2018-02-16 11:45:21 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "injection",
|
|
|
|
srcs = [
|
|
|
|
"index.ts",
|
|
|
|
"usage.ts",
|
|
|
|
],
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"ivy-only",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ng_rollup_bundle(
|
|
|
|
name = "bundle",
|
2019-06-07 16:38:06 -04:00
|
|
|
entry_point = ":index.ts",
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"ivy-only",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
deps = [
|
|
|
|
":injection",
|
|
|
|
"//packages/core",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//rxjs",
|
2018-02-16 11:45:21 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
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",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
deps = [
|
|
|
|
":injection",
|
|
|
|
"//packages:types",
|
2018-10-24 19:02:25 -04:00
|
|
|
"//packages/compiler",
|
2018-02-16 11:45:21 -05:00
|
|
|
"//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",
|
|
|
|
],
|
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",
|
|
|
|
],
|
2018-02-16 11:45:21 -05:00
|
|
|
)
|