build: add bazel rulse for benchmarks (#21436)

PR Close #21436
This commit is contained in:
Misko Hevery 2018-01-10 00:07:55 -08:00 committed by Alex Eagle
parent fc3e7e0381
commit ef956a20c3
7 changed files with 109 additions and 1 deletions

View File

@ -62,7 +62,7 @@ jobs:
# Use bazel query so that we explicitly ask for all buildable targets to be built as well
# This avoids waiting for a build command to finish before running the first test
# See https://github.com/bazelbuild/bazel/issues/4257
- run: bazel query --output=label '//packages/... union @angular//...' | xargs bazel test --config=ci
- run: bazel query --output=label '//modules/... union //packages/... union @angular//...' | xargs bazel test --config=ci
- save_cache:
key: *cache_key

View File

@ -0,0 +1,15 @@
package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
ts_library(
name = "util_lib",
srcs = [
"util.ts",
],
tsconfig = "//packages:tsconfig",
deps = [
"//packages:types",
"//packages/core",
],
)

View File

@ -0,0 +1,16 @@
package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
ts_library(
name = "util_lib",
srcs = [
"util.ts",
],
tsconfig = "//packages:tsconfig",
deps = [
"//modules/benchmarks/src:util_lib",
"//packages:types",
"//packages/core",
],
)

View File

@ -0,0 +1,20 @@
package(default_visibility = ["//visibility:public"])
load("@angular//:index.bzl", "ng_module")
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
ng_module(
name = "largetable_lib",
srcs = glob(
[
"**/*.ts",
],
),
tsconfig = "//packages:tsconfig",
deps = [
"//modules/benchmarks/src/largetable:util_lib",
"//packages:types",
"//packages/core",
"@rxjs",
],
)

View File

@ -0,0 +1,16 @@
package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
ts_library(
name = "util_lib",
srcs = [
"util.ts",
],
tsconfig = "//packages:tsconfig",
deps = [
"//modules/benchmarks/src:util_lib",
"//packages:types",
"//packages/core",
],
)

View File

@ -0,0 +1,20 @@
package(default_visibility = ["//visibility:public"])
load("@angular//:index.bzl", "ng_module")
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
ng_module(
name = "render3_lib",
srcs = glob(
[
"**/*.ts",
],
),
tsconfig = "//packages:tsconfig",
deps = [
"//modules/benchmarks/src/tree:util_lib",
"//packages:types",
"//packages/core",
"@rxjs",
],
)

View File

@ -0,0 +1,21 @@
package(default_visibility = ["//visibility:public"])
load("@angular//:index.bzl", "ng_module")
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
ng_module(
name = "render3_function_lib",
srcs = glob(
[
"**/*.ts",
],
),
tsconfig = "//packages:tsconfig",
deps = [
"//modules/benchmarks/src/tree:util_lib",
"//modules/benchmarks/src/tree/render3:render3_lib",
"//packages:types",
"//packages/core",
"@rxjs",
],
)