-
Notifications
You must be signed in to change notification settings - Fork 3
/
BUILD.bazel
49 lines (45 loc) · 1.02 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
package(default_visibility = ["//visibility:public"])
alias(
name = "install",
actual = "@yarn//:yarn",
)
exports_files([
"tsconfig.json",
"node_modules/protobufjs",
"node_modules/zone.js/dist/zone.min.js",
"node_modules/long/dist/long.js",
])
filegroup(
name = "node_modules",
srcs = glob(["/".join([
"node_modules",
pkg,
"**",
ext,
]) for pkg in [
"@angular",
"tsickle",
"tsutils",
"typescript",
"protobufjs",
"@types",
] for ext in [
"*.js",
"*.json",
"*.d.ts",
]]),
)
filegroup(
name = "angular_bundles",
srcs = glob(
[
"node_modules/@angular/*/bundles/*.umd.js",
],
exclude = [
"node_modules/@angular/*/bundles/*-testing.umd.js",
# We use AOT, so the compiler and the dynamic platform-browser should be
# visible only in tests
"node_modules/@angular/compiler/bundles/*.umd.js",
],
),
)