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",
|
2018-09-14 10:03:29 -04:00
|
|
|
"//packages/bazel/src/builders:package_assets",
|
2019-02-19 19:15:06 -05:00
|
|
|
"//packages/bazel/src/ng_package:package_assets",
|
|
|
|
"//packages/bazel/src/ngc-wrapped:package_assets",
|
2018-09-14 10:03:29 -04:00
|
|
|
"//packages/bazel/src/schematics:package_assets",
|
2019-02-19 19:15:06 -05:00
|
|
|
"//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-03-11 04:44:27 -04:00
|
|
|
"//packages/bazel/src/ngc-wrapped": "@npm//@angular/bazel/bin:ngc-wrapped",
|
2019-02-19 19:15:06 -05:00
|
|
|
"//packages/bazel/": "//",
|
|
|
|
"angular/packages/bazel/": "npm_angular_bazel/",
|
|
|
|
},
|
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-11-16 14:36:17 -05:00
|
|
|
"//packages/bazel/src/builders",
|
2018-10-16 16:20:00 -04:00
|
|
|
"//packages/bazel/src/ng_package:lib",
|
|
|
|
"//packages/bazel/src/ngc-wrapped:ngc_lib",
|
2019-01-28 14:03:04 -05:00
|
|
|
"//packages/bazel/src/schematics/ng-add",
|
2018-09-14 10:03:29 -04:00
|
|
|
"//packages/bazel/src/schematics/ng-new",
|
2018-10-16 16:20:00 -04:00
|
|
|
],
|
2018-03-07 12:04:27 -05:00
|
|
|
)
|