forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
80 lines (74 loc) · 2.22 KB
/
BUILD
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
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.io/license
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT License
exports_files([
"LICENSE",
"tsconfig.json", # @external
"tslint.base.json", # @external
])
# NOTE: this will move to node_modules/BUILD in a later release
# @external_begin
NODE_MODULES_EXCLUDE = [
# e.g. node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt
"node_modules/**/test/**",
# e.g. node_modules/xpath/docs/function resolvers.md
"node_modules/**/docs/**",
# e.g. node_modules/puppeteer/.local-chromium/mac-536395/chrome-mac/Chromium.app/Contents/Versions/66.0.3347.0/Chromium Framework.framework/Chromium Framework
"node_modules/**/.*/**",
# Ignore paths with spaces.
"node_modules/**/* *",
]
filegroup(
name = "node_modules",
srcs = glob(
# Only include files we might use, to reduce the file count and surface size of
# filename problems.
[
"node_modules/**/*.js",
"node_modules/**/*.json",
"node_modules/**/*.d.ts",
],
exclude = NODE_MODULES_EXCLUDE,
) + glob(["node_modules/.bin/*"]),
)
# node_modules filegroup for tools/quicktype_runner, which contains quicktype-core and tslint.
QUICKTYPE_TRANSITIVE_DEPENDENCIES = [
"collection-utils",
"core-util-is",
"inherits",
"isarray",
"js-base64",
"pako",
"pluralize",
"process-nextick-args",
"quicktype-core",
"readable-stream",
"safe-buffer",
"stream-json",
"string-to-stream",
"tiny-inflate",
"unicode-properties",
"unicode-trie",
"urijs",
"util-deprecate",
"wordwrap",
]
filegroup(
name = "quicktype_node_modules",
srcs = glob(
[
"/".join([
"node_modules", "**", pkg, "**/*.js",
]) for pkg in QUICKTYPE_TRANSITIVE_DEPENDENCIES
] + [
"/".join([
"node_modules", "**", pkg, "**/*.json",
]) for pkg in QUICKTYPE_TRANSITIVE_DEPENDENCIES
],
exclude = NODE_MODULES_EXCLUDE,
)
)
# @external_end