forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
57 lines (52 loc) · 1.71 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
load("//tools:defaults.bzl", "jasmine_test", "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"],
deps = [
"//:node_modules/@types/node",
"//packages/angular_devkit/schematics",
"//packages/angular_devkit/schematics:node_modules/@angular-devkit/core",
"//packages/angular_devkit/schematics:node_modules/jsonc-parser",
"//packages/angular_devkit/schematics:node_modules/rxjs",
"//packages/angular_devkit/schematics/tasks",
"//packages/angular_devkit/schematics/tasks/node",
],
)
ts_project(
name = "tools_test_lib",
testonly = True,
srcs = glob(
include = [
"**/*_spec.ts",
"test/**/*.ts",
],
),
deps = [
":tools",
"//:node_modules/@types/jasmine",
"//:node_modules/@types/node",
"//packages/angular_devkit/schematics",
"//packages/angular_devkit/schematics:node_modules/@angular-devkit/core",
"//packages/angular_devkit/schematics:node_modules/rxjs",
"//packages/angular_devkit/schematics/tasks",
"//packages/angular_devkit/schematics/testing",
"//tests/angular_devkit/schematics/tools/file-system-engine-host:file_system_engine_host_test_lib",
],
)
jasmine_test(
name = "tools_test",
data = [":tools_test_lib"],
)