build: add a ng_package rule for @angular/router (#22628)

PR Close #22628
This commit is contained in:
Alex Eagle
2018-03-07 09:56:07 -08:00
parent fcb8c492d6
commit ce649f725f
5 changed files with 63 additions and 15 deletions

View File

@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module")
load("//tools:defaults.bzl", "ng_module", "ng_package")
ng_module(
name = "router",
@ -19,3 +19,18 @@ ng_module(
"@rxjs",
],
)
ng_package(
name = "npm_package",
srcs = ["package.json"],
entry_point = "packages/router/index.js",
secondary_entry_points = [
"testing",
"upgrade",
],
deps = [
":router",
"//packages/router/testing",
"//packages/router/upgrade",
],
)