2020-06-25 04:32:41 -04:00
|
|
|
# BEGIN-DEV-ONLY
|
2019-12-28 19:37:59 -05:00
|
|
|
load("//tools:defaults.bzl", "pkg_npm")
|
2018-03-07 12:04:27 -05:00
|
|
|
|
2019-12-28 19:37:59 -05:00
|
|
|
pkg_npm(
|
2018-03-07 12:04:27 -05:00
|
|
|
name = "npm_package",
|
2019-02-19 19:15:06 -05:00
|
|
|
srcs = glob(
|
|
|
|
["*"],
|
|
|
|
exclude = ["yarn.lock"],
|
|
|
|
) + [
|
2018-03-07 12:04:27 -05:00
|
|
|
"//packages/bazel/src:package_assets",
|
2019-02-19 19:15:06 -05:00
|
|
|
"//packages/bazel/src/api-extractor:package_assets",
|
|
|
|
"//packages/bazel/src/ng_package:package_assets",
|
|
|
|
"//packages/bazel/src/ngc-wrapped:package_assets",
|
|
|
|
"//packages/bazel/third_party/github.com/bazelbuild/bazel/src/main/protobuf:package_assets",
|
2018-03-07 12:04:27 -05:00
|
|
|
],
|
2019-12-28 19:37:59 -05:00
|
|
|
nested_packages = [
|
2018-10-16 16:20:00 -04:00
|
|
|
"//packages/bazel/docs",
|
|
|
|
],
|
2019-12-28 19:37:59 -05:00
|
|
|
substitutions = {
|
2019-02-19 19:15:06 -05:00
|
|
|
"(#|\/\/)\\s+BEGIN-DEV-ONLY[\\w\W]+?(#|\/\/)\\s+END-DEV-ONLY": "",
|
2020-06-25 04:32:41 -04:00
|
|
|
"//packages/bazel/": "//@angular/bazel/",
|
|
|
|
"@npm//@bazel/typescript/internal:": "//@bazel/typescript/internal:",
|
2019-02-19 19:15:06 -05:00
|
|
|
},
|
2018-03-30 16:48:47 -04:00
|
|
|
tags = ["release-with-framework"],
|
2018-12-11 19:53:42 -05:00
|
|
|
# Do not add more to this list.
|
|
|
|
# Dependencies on the full npm_package cause long re-builds.
|
2020-02-04 14:45:40 -05:00
|
|
|
visibility = ["//integration:__pkg__"],
|
2018-10-16 16:20:00 -04:00
|
|
|
deps = [
|
2019-02-19 19:15:06 -05:00
|
|
|
"//packages/bazel/src/api-extractor:lib",
|
2018-10-16 16:20:00 -04:00
|
|
|
"//packages/bazel/src/ng_package:lib",
|
|
|
|
"//packages/bazel/src/ngc-wrapped:ngc_lib",
|
|
|
|
],
|
2018-03-07 12:04:27 -05:00
|
|
|
)
|
2020-06-25 04:32:41 -04:00
|
|
|
# END-DEV-ONLY
|