mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
6fea9c88cc
Migrate examples to use ng_project and ts_project for building PR Close #61652
40 lines
802 B
Python
40 lines
802 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite")
|
|
load("//tools:defaults2.bzl", "ts_project")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.spec.ts"]),
|
|
deps = [
|
|
"//packages/common:common_rjs",
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/router:router_rjs",
|
|
"//packages/router/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "files_for_docgen",
|
|
srcs = glob([
|
|
"**/*.ts",
|
|
]),
|
|
)
|