mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 10:11:50 +08:00
* Removes `interop_deps` from the `ts_project` interop macro. * Keeps `_rjs` suffix for now as we still need the interop targets for e.g. `jasmine_node_test` and the `rules_nodejs` linker. In follow-ups we can remove the suffix, and interop layer.
61 lines
1.8 KiB
Python
61 lines
1.8 KiB
Python
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
|
load("//tools:interop.bzl", "ts_project")
|
|
|
|
# Copyright Google Inc. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by an MIT-style license that can be
|
|
# found in the LICENSE file at https://angular.dev/license
|
|
licenses(["notice"])
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_project(
|
|
name = "tools",
|
|
srcs = glob(
|
|
include = ["**/*.ts"],
|
|
exclude = [
|
|
"**/*_spec.ts",
|
|
"test/**/*.ts",
|
|
],
|
|
),
|
|
data = ["package.json"],
|
|
module_name = "@angular-devkit/schematics/tools",
|
|
deps = [
|
|
"//:root_modules/@types/node",
|
|
"//:root_modules/jsonc-parser",
|
|
"//:root_modules/rxjs",
|
|
"//packages/angular_devkit/core:core_rjs",
|
|
"//packages/angular_devkit/core/node:node_rjs",
|
|
"//packages/angular_devkit/schematics:schematics_rjs",
|
|
"//packages/angular_devkit/schematics/tasks:tasks_rjs",
|
|
"//packages/angular_devkit/schematics/tasks/node:node_rjs",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "tools_test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
include = [
|
|
"**/*_spec.ts",
|
|
"test/**/*.ts",
|
|
],
|
|
),
|
|
deps = [
|
|
":tools_rjs",
|
|
"//:root_modules/@types/jasmine",
|
|
"//:root_modules/rxjs",
|
|
"//packages/angular_devkit/core:core_rjs",
|
|
"//packages/angular_devkit/core/node:node_rjs",
|
|
"//packages/angular_devkit/schematics:schematics_rjs",
|
|
"//packages/angular_devkit/schematics/tasks:tasks_rjs",
|
|
"//packages/angular_devkit/schematics/testing:testing_rjs",
|
|
"//tests/angular_devkit/schematics/tools/file-system-engine-host:file_system_engine_host_test_lib_rjs",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "tools_test",
|
|
deps = [":tools_test_lib"],
|
|
)
|