mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d4d4be80a5
Use ts_project to build localize package PR Close #61615
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
load("//tools:defaults.bzl", "jasmine_node_test")
|
|
load("//tools:defaults2.bzl", "ts_project")
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
),
|
|
interop_deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli/private",
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
"//packages/compiler-cli/src/ngtsc/file_system/testing",
|
|
"//packages/compiler-cli/src/ngtsc/logging/testing",
|
|
],
|
|
visibility = ["//packages/localize/tools/test:__subpackages__"],
|
|
deps = [
|
|
"//:node_modules/@babel/generator",
|
|
"//:node_modules/@types/babel__generator",
|
|
"//:node_modules/fast-glob",
|
|
"//packages/localize:localize_rjs",
|
|
"//packages/localize/src/utils:utils_rjs",
|
|
"//packages/localize/tools:tools_rjs",
|
|
"//packages/localize/tools/test/helpers:helpers_rjs",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node_no_angular"],
|
|
deps = [
|
|
":test_lib",
|
|
"@npm//fast-glob",
|
|
],
|
|
)
|