build: Bazel builds ngfactories for packages/core (#18289)

PR Close #18289
This commit is contained in:
Alex Eagle
2017-07-21 14:20:34 -07:00
committed by Miško Hevery
parent b9e32c833a
commit bcea196530
11 changed files with 132 additions and 11 deletions

View File

@ -11,3 +11,18 @@ ts_library(
deps = [],
tsconfig = ":tsconfig-build.json",
)
load("@build_bazel_rules_angular//:defs.bzl", "ng_module")
ng_module(
name = "core_ng_module",
srcs = glob(["**/*.ts"], exclude=[
"test/**",
"testing/**",
]),
# Needed to allow (ts_library,ng_module) pair
write_ng_outputs_only = True,
module_name = "@angular/core",
tsconfig = ":tsconfig-build.json",
compiler = "//tools/ngc-wrapped"
)