forked from tensorflow/tensorboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
60 lines (52 loc) · 1.53 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
load("//tensorboard/defs:protos.bzl", "tb_proto_library")
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
load("@npm//@bazel/typescript:index.bzl", "ts_library")
package(default_visibility = ["//tensorboard:internal"])
licenses(["notice"])
py_test(
name = "tb_proto_library_test",
srcs = ["tb_proto_library_test.py"],
deps = [
":test_base_py_pb2",
":test_base_py_pb2_grpc",
":test_downstream_py_pb2",
":test_downstream_py_pb2_grpc",
"//tensorboard:test",
],
)
tb_proto_library(
name = "test_base",
testonly = True,
srcs = ["test_base.proto"],
has_services = True,
)
tb_proto_library(
name = "test_downstream",
testonly = True,
srcs = ["test_downstream.proto"],
has_services = True,
deps = [
":test_base",
],
)
exports_files([
"rollup_config.js",
"terser_config.json",
])
ts_library(
name = "strict_types",
srcs = ["strict_type_check.d.ts"],
)
# Custom ts_library compiler that runs tsc_wrapped with angular/compiler-cli statically linked
# This can be used with worker mode because we don't need the linker at runtime to make
# the angular plugin loadable
# Just a clone of @npm//@bazel/typescript/bin:tsc_wrapped with added deps
nodejs_binary(
name = "tsc_wrapped_with_angular",
data = [
"@npm//@angular/compiler-cli",
"@npm//@bazel/typescript",
],
entry_point = "@npm//:node_modules/@bazel/typescript/internal/tsc_wrapped/tsc_wrapped.js",
visibility = ["//tensorboard:__subpackages__"],
)