
This reverts commit a38433f36b036cb2956066cb6a5843bef73a4de1. Reason: this causes failures in g3 with i18n extraction. See #31267. PR Close #31267
49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
load("//tools:defaults.bzl", "ng_module")
|
|
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
|
|
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
|
|
|
|
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
|
|
|
|
# Note that this benchmark has been designed for Angular with ViewEngine, but once
|
|
# ViewEngine is removed, we should should consider removing this one since there
|
|
# already is a "render3" benchmark.
|
|
ng_module(
|
|
name = "ng2",
|
|
srcs = glob(["*.ts"]),
|
|
tsconfig = "//modules/benchmarks:tsconfig-build.json",
|
|
# TODO: FW-1004 Type checking is currently not complete.
|
|
type_check = False,
|
|
deps = [
|
|
"//modules/benchmarks/src:util_lib",
|
|
"//modules/benchmarks/src/tree:util_lib",
|
|
"//packages/core",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser-dynamic",
|
|
],
|
|
)
|
|
|
|
ts_devserver(
|
|
name = "devserver",
|
|
entry_module = "angular/modules/benchmarks/src/tree/ng2/index",
|
|
index_html = "index.html",
|
|
port = 4200,
|
|
scripts = [
|
|
"@npm//node_modules/tslib:tslib.js",
|
|
"//tools/rxjs:rxjs_umd_modules",
|
|
],
|
|
static_files = [
|
|
"@npm//node_modules/zone.js:dist/zone.js",
|
|
"@npm//node_modules/reflect-metadata:Reflect.js",
|
|
],
|
|
deps = [":ng2"],
|
|
)
|
|
|
|
benchmark_test(
|
|
name = "perf",
|
|
server = ":devserver",
|
|
deps = [
|
|
"//modules/benchmarks/src/tree:perf_detect_changes_lib",
|
|
"//modules/benchmarks/src/tree:perf_lib",
|
|
],
|
|
)
|