2017-06-02 12:43:52 -04:00
|
|
|
package(default_visibility=["//visibility:public"])
|
2017-07-21 17:11:35 -04:00
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
2017-06-02 12:43:52 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "core",
|
|
|
|
srcs = glob(["**/*.ts"], exclude=[
|
|
|
|
"test/**",
|
|
|
|
"testing/**",
|
|
|
|
]),
|
|
|
|
module_name = "@angular/core",
|
|
|
|
deps = [],
|
|
|
|
tsconfig = ":tsconfig-build.json",
|
|
|
|
)
|
2017-07-21 17:20:34 -04:00
|
|
|
|
|
|
|
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"
|
|
|
|
)
|