-
Notifications
You must be signed in to change notification settings - Fork 398
/
BUILD.bazel
67 lines (58 loc) · 1.37 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
load("@aspect_rules_js//js:defs.bzl", "js_test")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//:defs.bzl", "ng_app")
package(default_visibility = ["//visibility:public"])
# Link npm packages
npm_link_all_packages(name = "node_modules")
# Root config files used throughout build/test/lint etc
copy_to_bin(
name = "ng-base-config",
srcs = [
"angular.json",
"tsconfig.json",
"package.json",
],
)
# Test config files
copy_to_bin(
name = "ng-base-test-config",
srcs = [
"karma-custom-launchers.js",
],
)
# Lint config files
copy_to_bin(
name = "ng-base-lint-config",
srcs = [
".eslintrc.json",
],
)
# The main application
ng_app(
name = "app",
project_name = "material-angular-io",
deps = [
"//:node_modules/@angular/components-examples",
"//:node_modules/@stackblitz/sdk",
"//:node_modules/path-normalize",
"//:node_modules/moment",
],
)
js_test(
name = "audit",
entry_point = "tools/audit-docs.js",
args = [
"$(location //:build.production)",
],
data = [
"tools/lighthouse-audit.mjs",
"//:build.production",
"//:node_modules/lighthouse",
"//:node_modules/lighthouse-logger",
"//:node_modules/puppeteer",
"//:node_modules/shelljs",
"//:node_modules/light-server",
],
tags = ["audit"],
)