forked from angular/dev-infra
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.bzl
More file actions
28 lines (25 loc) · 1.3 KB
/
package.bzl
File metadata and controls
28 lines (25 loc) · 1.3 KB
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
stampSubstitutions = {
# The variables are special statuses generated within the Bazel workspace
# status command stamping script.
"{SCM_HEAD_SHA}": "{{BUILD_SCM_COMMIT_SHA}}",
}
noStampSubstitutions = dict(stampSubstitutions, **{})
basePackageSubstitutions = {
"(#|//)\\s+BEGIN-DEV-ONLY[\\w\\W]+?(#|//)\\s+END-DEV-ONLY": "",
" \"prepare\": \"husky\",\n": "",
"@devinfra//bazel/": "@npm//@angular/build-tooling/bazel/",
"rlocation \"devinfra/": "rlocation \"npm/@angular/build-tooling/",
"//bazel/": "@npm//@angular/build-tooling/bazel/",
"//bazel:": "@npm//@angular/build-tooling/bazel:",
"//lint-rules/tslint/": "@npm//@angular/build-tooling/tslint/",
"//lint-rules/tslint:": "@npm//@angular/build-tooling/tslint:",
"//lint-rules/stylelint/": "@npm//@angular/build-tooling/stylelint/",
"//lint-rules/stylelint:": "@npm//@angular/build-tooling/stylelint:",
"//shared-scripts/": "@npm//@angular/build-tooling/shared-scripts/",
"//shared-scripts:": "@npm//@angular/build-tooling/shared-scripts:",
"//:tsconfig.json": "@npm//@angular/build-tooling:tsconfig.json",
}
NPM_PACKAGE_SUBSTITUTIONS = select({
"//tools:stamp": dict(basePackageSubstitutions, **stampSubstitutions),
"//conditions:default": dict(basePackageSubstitutions, **noStampSubstitutions),
})