mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
67 lines
1.8 KiB
Python
67 lines
1.8 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
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
|
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
|
|
|
|
licenses(["notice"])
|
|
|
|
# @angular-devkit/schematics-cli
|
|
|
|
ts_library(
|
|
name = "schematics_cli",
|
|
srcs = glob(
|
|
include = ["bin/**/*.ts"],
|
|
exclude = [
|
|
"bin/**/*_spec.ts",
|
|
"bin/**/*_spec_large.ts",
|
|
"bin/**/*_benchmark.ts",
|
|
],
|
|
),
|
|
# 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"],
|
|
)
|