2019-09-20 11:05:45 -04:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
load("@npm_bazel_typescript//:index.bzl", "ts_config")
|
|
|
|
|
|
|
|
ts_config(
|
|
|
|
name = "tsconfig",
|
|
|
|
src = "tsconfig-build.json",
|
|
|
|
deps = ["//packages:tsconfig-build.json"],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ng-add",
|
|
|
|
srcs = [
|
|
|
|
"index.ts",
|
|
|
|
"schema.d.ts",
|
|
|
|
],
|
|
|
|
data = glob(["files/**/*"]) + [
|
|
|
|
"schema.json",
|
|
|
|
],
|
|
|
|
tsconfig = ":tsconfig",
|
|
|
|
deps = [
|
|
|
|
"@npm//@angular-devkit/core",
|
|
|
|
"@npm//@angular-devkit/schematics",
|
|
|
|
"@npm//@schematics/angular",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = [
|
|
|
|
"index_spec.ts",
|
|
|
|
],
|
|
|
|
data = [
|
|
|
|
"//packages/localize/schematics:package_assets",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":ng-add",
|
|
|
|
"@npm//@angular-devkit/schematics",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
2019-12-28 21:14:36 -05:00
|
|
|
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
2019-09-20 11:05:45 -04:00
|
|
|
deps = [
|
|
|
|
":test_lib",
|
2020-01-10 16:39:37 -05:00
|
|
|
"//tools/testing:node",
|
2019-12-28 21:14:36 -05:00
|
|
|
"//tools/testing:node_es5",
|
2019-09-20 11:05:45 -04:00
|
|
|
],
|
|
|
|
)
|