build(ivy): enable prodserver on the largetable benchmark (#32072)
PR Close #32072
This commit is contained in:
parent
21bb74d16f
commit
d443a28743
|
@ -1,4 +1,4 @@
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
|
||||||
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
|
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
|
||||||
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
|
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
|
||||||
|
|
||||||
|
@ -22,24 +22,27 @@ ng_module(
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ng_rollup_bundle(
|
||||||
|
name = "bundle",
|
||||||
|
entry_point = ":index_aot.ts",
|
||||||
|
deps = [
|
||||||
|
":ng2",
|
||||||
|
"@npm//rxjs",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
ts_devserver(
|
ts_devserver(
|
||||||
name = "devserver",
|
name = "prodserver",
|
||||||
entry_module = "angular/modules/benchmarks/src/largetable/ng2/index",
|
|
||||||
index_html = "index.html",
|
index_html = "index.html",
|
||||||
port = 4200,
|
port = 4200,
|
||||||
scripts = [
|
|
||||||
"@npm//:node_modules/tslib/tslib.js",
|
|
||||||
"//tools/rxjs:rxjs_umd_modules",
|
|
||||||
],
|
|
||||||
static_files = [
|
static_files = [
|
||||||
|
":bundle.min_debug.es2015.js",
|
||||||
"@npm//:node_modules/zone.js/dist/zone.js",
|
"@npm//:node_modules/zone.js/dist/zone.js",
|
||||||
"@npm//:node_modules/reflect-metadata/Reflect.js",
|
|
||||||
],
|
],
|
||||||
deps = [":ng2"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
benchmark_test(
|
benchmark_test(
|
||||||
name = "perf",
|
name = "perf",
|
||||||
server = ":devserver",
|
server = ":prodserver",
|
||||||
deps = ["//modules/benchmarks/src/largetable:perf_lib"],
|
deps = ["//modules/benchmarks/src/largetable:perf_lib"],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue