-
Notifications
You must be signed in to change notification settings - Fork 12k
/
Copy pathBUILD.bazel
49 lines (44 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
46
47
48
49
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults2.bzl", "jasmine_test", "ts_project")
package(default_visibility = ["//visibility:public"])
npm_link_all_packages()
ts_project(
name = "builder",
testonly = True,
srcs = glob(
include = [
"src/**/*.ts",
],
exclude = [
"src/**/*_spec.ts",
],
),
data = [
# Needed at runtime by some builder tests relying on SSR being
# resolvable in the test project.
":node_modules/@angular/ssr",
] + glob(["projects/**/*"]),
deps = [
":node_modules/@angular-devkit/architect",
":node_modules/@angular-devkit/core",
":node_modules/rxjs",
"//:node_modules/@types/node",
],
)
ts_project(
name = "unit_test_lib",
testonly = True,
srcs = glob(
include = [
"src/**/*_spec.ts",
],
),
deps = [
":builder",
":node_modules/@angular-devkit/architect",
],
)
jasmine_test(
name = "unit_test",
data = [":unit_test_lib"],
)