2020-02-04 14:45:40 -05:00
|
|
|
load("//tools:defaults.bzl", "pkg_npm")
|
2019-05-31 11:56:07 -04:00
|
|
|
load("//packages/zone.js:bundles.bzl", "ES2015_BUNDLES", "ES5_BUNDLES", "ES5_GLOBAL_BUNDLES")
|
|
|
|
|
|
|
|
exports_files([
|
|
|
|
"tsconfig.json",
|
2019-10-27 19:28:03 -04:00
|
|
|
"rollup-es5.config.js",
|
|
|
|
"rollup-es5_global-es2015.config.js",
|
2019-05-31 11:56:07 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
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 '*/') > $@",
|
|
|
|
)
|
|
|
|
|
2019-12-28 19:37:59 -05:00
|
|
|
pkg_npm(
|
2019-05-31 11:56:07 -04:00
|
|
|
name = "npm_package",
|
|
|
|
srcs = [
|
|
|
|
"CHANGELOG.md",
|
|
|
|
"README.md",
|
|
|
|
"package.json",
|
|
|
|
],
|
2019-10-05 23:06:53 -04:00
|
|
|
visibility = ["//visibility:public"],
|
2019-05-31 11:56:07 -04:00
|
|
|
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"],
|
|
|
|
)
|