mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
test(@angular-devkit/schematics-cli): test with Bazel
This commit is contained in:
parent
ee24d32f71
commit
fca831ca88
@ -113,6 +113,7 @@
|
||||
"git-raw-commits": "^2.0.0",
|
||||
"glob": "^7.0.3",
|
||||
"husky": "^4.0.10",
|
||||
"inquirer": "7.1.0",
|
||||
"jasmine": "^3.3.1",
|
||||
"jasmine-spec-reporter": "~5.0.0",
|
||||
"karma": "~4.4.1",
|
||||
@ -136,6 +137,7 @@
|
||||
"source-map": "^0.7.3",
|
||||
"source-map-support": "^0.5.0",
|
||||
"spdx-satisfies": "^5.0.0",
|
||||
"symbol-observable": "1.2.0",
|
||||
"tar": "^6.0.0",
|
||||
"temp": "^0.9.0",
|
||||
"through2": "^3.0.0",
|
||||
|
@ -5,6 +5,7 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
||||
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
@ -20,19 +21,46 @@ ts_library(
|
||||
"bin/**/*_benchmark.ts",
|
||||
],
|
||||
),
|
||||
module_name = "@angular-devkit/schematics-cli",
|
||||
module_root = "bin",
|
||||
# The attribute below is needed in g3 to turn off strict typechecking
|
||||
# strict_checks = False,
|
||||
data = glob(["**/*.json"]),
|
||||
module_name = "@angular-devkit/schematics-cli",
|
||||
module_root = "bin/schematics.d.ts",
|
||||
deps = [
|
||||
"//packages/angular_devkit/core",
|
||||
"//packages/angular_devkit/core/node",
|
||||
"//packages/angular_devkit/schematics",
|
||||
"//packages/angular_devkit/schematics/tasks",
|
||||
"//packages/angular_devkit/schematics/tools",
|
||||
"//packages/schematics/schematics",
|
||||
"@npm//@types/inquirer",
|
||||
"@npm//@types/minimist",
|
||||
"@npm//@types/node",
|
||||
"@npm//inquirer",
|
||||
"@npm//minimist",
|
||||
"@npm//rxjs",
|
||||
"@npm//symbol-observable",
|
||||
],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "schematics_cli_test_lib",
|
||||
testonly = True,
|
||||
srcs = glob(
|
||||
include = [
|
||||
"bin/**/*_spec.ts",
|
||||
],
|
||||
),
|
||||
# strict_checks = False,
|
||||
tsconfig = "//:tsconfig-test.json",
|
||||
deps = [
|
||||
":schematics_cli",
|
||||
"@npm//@types/jasmine",
|
||||
"@npm//@types/node",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
name = "schematics_cli_test",
|
||||
srcs = [":schematics_cli_test_lib"],
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user