41 lines
739 B
Python
41 lines
739 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "ng-add",
|
|
srcs =
|
|
[
|
|
"index.ts",
|
|
"schema.ts",
|
|
],
|
|
deps = [
|
|
"@npm//@angular-devkit/schematics",
|
|
"@npm//@schematics/angular",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = [
|
|
"index_spec.ts",
|
|
],
|
|
data = [
|
|
"schema.json",
|
|
],
|
|
deps = [
|
|
":ng-add",
|
|
"@npm//@angular-devkit/schematics",
|
|
"@npm//@schematics/angular",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
deps = [
|
|
":test_lib",
|
|
"//packages/elements/schematics:collection",
|
|
],
|
|
)
|