-
Notifications
You must be signed in to change notification settings - Fork 12k
/
Copy pathBUILD.bazel
81 lines (76 loc) · 2.14 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# 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_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
licenses(["notice"])
ts_library(
name = "tasks",
srcs = glob(
include = ["**/*.ts"],
exclude = [
"node/**/*.ts",
"**/*_spec.ts",
"**/*_benchmark.ts",
"tslint-fix/test/**/*",
],
),
module_name = "@angular-devkit/schematics/tasks",
module_root = "index.d.ts",
# The attribute below is needed in g3 to turn off strict typechecking
# strict_checks = False,
deps = [
"//packages/angular_devkit/core",
"//packages/angular_devkit/core/node",
"//packages/angular_devkit/schematics",
"@npm//@types/node",
"@npm//ora",
"@npm//rxjs",
"@npm//tslint",
"@npm//typescript",
],
)
ts_library(
name = "tasks_test_lib",
testonly = True,
srcs = glob(
include = [
"**/*_spec.ts",
"**/*_spec_large.ts",
"tslint-fix/test/**/*.ts",
],
exclude = [
"node/**/*.ts",
],
),
data = [
"tslint-fix/test/collection.json",
"tslint-fix/test/rules/customRuleRule.js",
],
# The attribute below is needed in g3 to turn off strict typechecking
# strict_checks = False,
# @external_begin
tsconfig = "//:tsconfig-test.json",
# @external_end
deps = [
":tasks",
"//packages/angular_devkit/core",
"//packages/angular_devkit/core/node",
"//packages/angular_devkit/core/node/testing",
"//packages/angular_devkit/schematics",
"//packages/angular_devkit/schematics/testing",
"@npm//@types/jasmine",
"@npm//@types/node",
"@npm//rxjs",
],
)
jasmine_node_test(
name = "tasks_test",
srcs = [":tasks_test_lib"],
deps = [
"@npm//jasmine",
"@npm//source-map",
],
)