2018-03-13 14:00:53 -04:00
|
|
|
load("//tools:defaults.bzl", "npm_package")
|
2018-03-07 12:04:27 -05:00
|
|
|
|
|
|
|
genrule(
|
|
|
|
name = "workspace",
|
|
|
|
outs = ["WORKSPACE"],
|
|
|
|
cmd = "echo 'workspace(name=\"angular\")' > $@",
|
|
|
|
)
|
|
|
|
|
|
|
|
npm_package(
|
|
|
|
name = "npm_package",
|
2018-09-27 01:20:16 -04:00
|
|
|
srcs = glob(["*.bzl"]) + [
|
2018-03-13 14:00:53 -04:00
|
|
|
"BUILD.bazel",
|
2018-03-07 12:56:07 -05:00
|
|
|
"package.json",
|
2018-03-07 12:04:27 -05:00
|
|
|
"//packages/bazel/src:package_assets",
|
|
|
|
],
|
2018-04-25 12:23:20 -04:00
|
|
|
packages = ["//packages/bazel/docs"],
|
2018-03-07 12:04:27 -05:00
|
|
|
# Re-host //packages/bazel/ which is just // in the public distro
|
|
|
|
replacements = {
|
|
|
|
"//packages/bazel/": "//",
|
|
|
|
"angular/packages/bazel/": "angular/",
|
|
|
|
},
|
2018-03-30 16:48:47 -04:00
|
|
|
tags = ["release-with-framework"],
|
2018-03-07 12:56:07 -05:00
|
|
|
deps = [":workspace"],
|
2018-03-07 12:04:27 -05:00
|
|
|
)
|