forked from angular/angular-bazel-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
38 lines (35 loc) · 914 Bytes
/
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
package(default_visibility = ["//visibility:public"])
exports_files([
"tsconfig.json",
"node_modules/zone.js/dist/zone.min.js",
])
# NOTE: this will move to node_modules/BUILD in a later release
filegroup(
name = "node_modules",
# NB: rxjs is not in this list, because we build it from sources using the
# label @rxjs//:rxjs
srcs = glob(["/".join([
"node_modules",
pkg,
"**",
ext,
]) for pkg in [
"@angular",
"tsickle",
"tsutils",
"typescript",
"@types",
] for ext in [
"*.js",
"*.json",
"*.d.ts",
]]),
)
filegroup(
name = "angular_bundles",
srcs = [
"//:node_modules/@angular/common/bundles/common.umd.js",
"//:node_modules/@angular/core/bundles/core.umd.js",
"//:node_modules/@angular/platform-browser/bundles/platform-browser.umd.js",
],
)