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

46 lines
1.1 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",
])
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"],
)