build: Add .bzl/BUILD files to @angular/bazel package (#28769)

It's now possible to use it as a hybrid package in latest rules_nodejs, so no WORKSPACE dep is needed

PR Close #28769
This commit is contained in:
Alex Eagle
2019-02-19 16:15:06 -08:00
committed by Igor Minar
parent 2d804198d5
commit 1eccf64b15
20 changed files with 371 additions and 129 deletions

View File

@ -1,6 +1,8 @@
package(default_visibility = ["//packages:__subpackages__"])
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
# BEGIN-DEV-ONLY
load("//tools:defaults.bzl", "ts_library")
ts_library(
@ -15,6 +17,7 @@ ts_library(
],
)
# END-DEV-ONLY
nodejs_binary(
name = "api_extractor",
data = [
@ -25,3 +28,8 @@ nodejs_binary(
entry_point = "angular/packages/bazel/src/api-extractor/index.js",
visibility = ["//visibility:public"],
)
filegroup(
name = "package_assets",
srcs = ["BUILD.bazel"],
)