48 lines
1.2 KiB
Python
48 lines
1.2 KiB
Python
|
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package", "rollup_bundle")
|
||
|
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
|
||
|
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
|
||
|
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 = ["//packages/zone.js/test:__pkg__"],
|
||
|
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"],
|
||
|
)
|