forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
41 lines (37 loc) · 915 Bytes
/
BUILD.bazel
File metadata and controls
41 lines (37 loc) · 915 Bytes
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
load("//tools:defaults.bzl", "esbuild", "http_server", "ng_module")
package(default_visibility = ["//modules/playground:__subpackages__"])
ng_module(
name = "routing",
srcs = glob(["**/*.ts"]),
assets = glob(
["**/*.html"],
exclude = ["index.html"],
),
tsconfig = "//modules/playground:tsconfig-build.json",
deps = [
"//packages/core",
"//packages/platform-browser",
"//packages/platform-browser-dynamic",
"//packages/router",
"@npm//rxjs",
],
)
esbuild(
name = "bundles",
entry_point = ":main.ts",
splitting = True,
deps = [":routing"],
)
http_server(
name = "devserver",
srcs = [
"css/app.css",
"css/gumby.css",
"index.html",
"//third_party/fonts.google.com/open-sans",
],
deps = [
":bundles",
"//packages/zone.js/bundles:zone.umd.js",
],
)