forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.bazel
45 lines (41 loc) · 1.06 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
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:interop.bzl", "ts_project")
package(default_visibility = ["//visibility:public"])
ts_project(
name = "builder",
testonly = True,
srcs = glob(
include = [
"src/**/*.ts",
],
exclude = [
"src/**/*_spec.ts",
],
),
data = glob(["projects/**/*"]),
deps = [
"//:root_modules/rxjs",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/architect/node:node_rjs",
"//packages/angular_devkit/architect/testing:testing_rjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
],
)
ts_project(
name = "unit_test_lib",
testonly = True,
srcs = glob(
include = [
"src/**/*_spec.ts",
],
),
deps = [
":builder_rjs",
"//packages/angular_devkit/architect/testing:testing_rjs",
],
)
jasmine_node_test(
name = "unit_test",
srcs = [":unit_test_lib"],
)