2018-04-12 18:09:06 -04:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "npm_package", "ts_library")
|
2018-04-12 18:09:06 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ng-add",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"index.ts",
|
|
|
|
"schema.ts",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
deps = [
|
|
|
|
"//packages/common",
|
|
|
|
"//packages/core",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//@angular-devkit/schematics",
|
2018-04-12 18:09:06 -04:00
|
|
|
"@rxjs",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-04-12 18:09:06 -04:00
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"index_spec.ts",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
deps = [
|
|
|
|
":ng-add",
|
|
|
|
"//packages/common",
|
|
|
|
"//packages/core",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//@angular-devkit/schematics",
|
2018-04-12 18:09:06 -04:00
|
|
|
"@rxjs",
|
|
|
|
"@rxjs//operators",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
2018-05-11 02:35:21 -04:00
|
|
|
"//packages/elements/schematics:collection",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//@schematics/angular",
|
2018-04-12 18:09:06 -04:00
|
|
|
],
|
|
|
|
)
|