mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
G3 is now using RXJS version 7 which makes it possible for the CLI to also be updated to RXJS 7. NB: this change does not remove all usages of the deprecated APIs. Closes #24371
59 lines
1.4 KiB
Python
59 lines
1.4 KiB
Python
# 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.io/license
|
|
|
|
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
|
load("//tools:defaults.bzl", "ts_library")
|
|
load("//tools:toolchain_info.bzl", "TOOLCHAINS_NAMES", "TOOLCHAINS_VERSIONS")
|
|
|
|
licenses(["notice"])
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "node",
|
|
srcs = glob(
|
|
include = ["**/*.ts"],
|
|
exclude = ["**/*_spec.ts"],
|
|
),
|
|
module_name = "@angular-devkit/architect/node",
|
|
module_root = "index.d.ts",
|
|
deps = [
|
|
"//packages/angular_devkit/architect",
|
|
"//packages/angular_devkit/core",
|
|
"//packages/angular_devkit/core/node",
|
|
"@npm//@types/node",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "node_test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
include = [
|
|
"**/*_spec.ts",
|
|
],
|
|
),
|
|
deps = [
|
|
":node",
|
|
"//packages/angular_devkit/architect",
|
|
"//tests/angular_devkit/architect/node/jobs:jobs_test_lib",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
[
|
|
jasmine_node_test(
|
|
name = "node_test_" + toolchain_name,
|
|
srcs = [":node_test_lib"],
|
|
tags = [toolchain_name],
|
|
toolchain = toolchain,
|
|
)
|
|
for toolchain_name, toolchain in zip(
|
|
TOOLCHAINS_NAMES,
|
|
TOOLCHAINS_VERSIONS,
|
|
)
|
|
]
|