25 lines
621 B
Python
25 lines
621 B
Python
load("//tools:defaults.bzl", "npm_package")
|
|
|
|
genrule(
|
|
name = "workspace",
|
|
outs = ["WORKSPACE"],
|
|
cmd = "echo 'workspace(name=\"angular\")' > $@",
|
|
)
|
|
|
|
npm_package(
|
|
name = "npm_package",
|
|
srcs = glob(["*.bzl"]) + [
|
|
"BUILD.bazel",
|
|
"package.json",
|
|
"//packages/bazel/src:package_assets",
|
|
],
|
|
packages = ["//packages/bazel/docs"],
|
|
# Re-host //packages/bazel/ which is just // in the public distro
|
|
replacements = {
|
|
"//packages/bazel/": "//",
|
|
"angular/packages/bazel/": "angular/",
|
|
},
|
|
tags = ["release-with-framework"],
|
|
deps = [":workspace"],
|
|
)
|