2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
2018-02-02 18:08:25 -05:00
|
|
|
|
2019-01-16 04:19:01 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-02-02 18:08:25 -05:00
|
|
|
ts_library(
|
|
|
|
name = "lib",
|
2018-08-14 19:18:26 -04:00
|
|
|
testonly = True,
|
2018-02-02 18:08:25 -05:00
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
|
|
|
exclude = [
|
|
|
|
"**/*_spec.ts",
|
|
|
|
"**/*_spec",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
deps = [
|
|
|
|
"//packages:types",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//typescript",
|
2018-02-02 18:08:25 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = glob(
|
|
|
|
["**/*_spec.ts"],
|
|
|
|
exclude = ["symbol_extractor_spec/**"],
|
|
|
|
),
|
|
|
|
deps = [
|
|
|
|
":lib",
|
|
|
|
"//packages:types",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//typescript",
|
2018-02-02 18:08:25 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
data = glob(["symbol_extractor_spec/**"]),
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
],
|
|
|
|
)
|