diff --git a/modules/benchmarks/BUILD.bazel b/modules/benchmarks/BUILD.bazel index 8ef1f366db..aea00ace1e 100644 --- a/modules/benchmarks/BUILD.bazel +++ b/modules/benchmarks/BUILD.bazel @@ -1,5 +1,10 @@ package(default_visibility = ["//visibility:public"]) +exports_files([ + "tsconfig-build.json", + "start-server.js", +]) + filegroup( name = "favicon", srcs = [ diff --git a/modules/benchmarks/src/tree/baseline/BUILD.bazel b/modules/benchmarks/src/tree/baseline/BUILD.bazel new file mode 100644 index 0000000000..692ad22e76 --- /dev/null +++ b/modules/benchmarks/src/tree/baseline/BUILD.bazel @@ -0,0 +1,22 @@ +load("//tools:defaults.bzl", "ts_library") +load("@build_bazel_rules_typescript//:defs.bzl", "ts_devserver") + +package(default_visibility = ["//modules/benchmarks:__subpackages__"]) + +ts_library( + name = "baseline", + srcs = glob(["*.ts"]), + tsconfig = "//modules/benchmarks:tsconfig-build.json", + deps = [ + "//modules/benchmarks/src:util_lib", + "//modules/benchmarks/src/tree:util_lib", + ], +) + +ts_devserver( + name = "devserver", + entry_module = "angular/modules/benchmarks/src/tree/baseline/index", + index_html = "index.html", + port = 4200, + deps = [":baseline"], +) diff --git a/modules/benchmarks/src/tree/baseline/index.html b/modules/benchmarks/src/tree/baseline/index.html index 3bfb634097..5e6983d0fc 100644 --- a/modules/benchmarks/src/tree/baseline/index.html +++ b/modules/benchmarks/src/tree/baseline/index.html @@ -1,5 +1,9 @@ +
+ + +