angular-docs-cn/packages/zone.js/BUILD.bazel

48 lines
1.2 KiB
Python
Raw Normal View History

load("@build_bazel_rules_nodejs//:index.bzl", "npm_package")
load("//packages/zone.js:bundles.bzl", "ES2015_BUNDLES", "ES5_BUNDLES", "ES5_GLOBAL_BUNDLES")
exports_files([
"tsconfig.json",
"rollup-es5.config.js",
"rollup-es5_global-es2015.config.js",
])
genrule(
name = "LICENSE_copy",
srcs = ["//:LICENSE"],
outs = ["LICENSE"],
cmd = "cp $< $@",
)
genrule(
name = "LICENSE_wrapped",
srcs = ["//:LICENSE"],
outs = ["LICENSE.wrapped"],
cmd = "(echo '/**\n @license' && cat $< && echo '*/') > $@",
)
npm_package(
name = "npm_package",
srcs = [
"CHANGELOG.md",
"README.md",
"package.json",
],
visibility = ["//visibility:public"],
deps = [
":LICENSE.wrapped",
":LICENSE_copy",
"//packages/zone.js/dist:zone_externs",
"//packages/zone.js/lib",
] + [
"//packages/zone.js/dist:" + b + "-dist"
for b in ES5_BUNDLES
] + [
"//packages/zone.js/dist:" + b + "-dist"
for b in ES2015_BUNDLES
] + [
"//packages/zone.js/dist:" + b + "-dist"
for b in ES5_GLOBAL_BUNDLES
] + ["//packages/zone.js/dist:zone_d_ts"],
)