build: create a more focused build file for packages/compiler/render3 (#23168)

PR Close #23168
This commit is contained in:
Miško Hevery 2018-04-04 11:38:37 -07:00 committed by Igor Minar
parent f544635014
commit 50ab8d8ad4
2 changed files with 33 additions and 3 deletions

View File

@ -15,7 +15,10 @@ UTILS = [
ts_library( ts_library(
name = "test_utils", name = "test_utils",
srcs = UTILS, srcs = UTILS,
visibility = ["//packages/compiler-cli/test:__subpackages__"], visibility = [
"//packages/compiler-cli/test:__subpackages__",
"//packages/compiler/test:__subpackages__",
],
deps = [ deps = [
"//packages:types", "//packages:types",
"//packages/compiler", "//packages/compiler",
@ -68,7 +71,6 @@ jasmine_node_test(
"//packages/common:npm_package", "//packages/common:npm_package",
"//packages/core:npm_package", "//packages/core:npm_package",
], ],
# dissable since tests are running but not yet passing
deps = [ deps = [
":test_lib", ":test_lib",
":test_node_only_lib", ":test_node_only_lib",
@ -79,7 +81,6 @@ jasmine_node_test(
ts_web_test( ts_web_test(
name = "test_web", name = "test_web",
# disable since tests are running but not yet passing
deps = [ deps = [
":test_lib", ":test_lib",
], ],

View File

@ -0,0 +1,29 @@
load("//tools:defaults.bzl", "ts_library", "ts_web_test")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
ts_library(
name = "test_lib",
testonly = 1,
srcs = glob(
["**/*.ts"],
),
deps = [
"//packages:types",
"//packages/compiler",
"//packages/compiler/test:test_utils",
"//packages/core",
],
)
jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
data = [
"//packages/common:npm_package",
"//packages/core:npm_package",
],
deps = [
":test_lib",
"//tools/testing:node",
],
)