mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2a26944974
Use ts_project and ng_project to build platform-browser and platform-browser-dynamic package PR Close #61624
61 lines
1.6 KiB
Python
61 lines
1.6 KiB
Python
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite")
|
|
load("//tools:defaults2.bzl", "ts_project")
|
|
|
|
exports_files([
|
|
"browser/static_assets/200.html",
|
|
"static_assets/test.html",
|
|
])
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
interop_deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/private/testing",
|
|
],
|
|
deps = [
|
|
"//:node_modules/rxjs",
|
|
"//packages/animations:animations_rjs",
|
|
"//packages/animations/browser:browser_rjs",
|
|
"//packages/animations/browser/testing:testing_rjs",
|
|
"//packages/common:common_rjs",
|
|
"//packages/common/http:http_rjs",
|
|
"//packages/common/http/testing:testing_rjs",
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/platform-browser:platform-browser_rjs",
|
|
"//packages/platform-browser-dynamic:platform-browser-dynamic_rjs",
|
|
"//packages/platform-browser/animations:animations_rjs",
|
|
"//packages/platform-browser/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
js_library(
|
|
name = "zone_event_unpatched_init_lib",
|
|
srcs = ["dom/events/zone_event_unpatched.init.mjs"],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
bootstrap = [
|
|
":zone_event_unpatched_init_lib",
|
|
],
|
|
static_files = [
|
|
":static_assets/test.html",
|
|
],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|