-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
67 lines (57 loc) · 2.33 KB
/
BUILD.bazel
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
61
62
63
64
65
66
67
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin")
package(default_visibility = ["//visibility:public"])
gazelle_binary(
name = "gazelle-protobuf",
languages = [
"@bazel_gazelle//language/proto",
# must be after the proto extension (order matters)
"@build_stack_rules_proto//language/protobuf",
],
)
gazelle(
name = "gazelle",
gazelle = ":gazelle-protobuf",
)
# these files are needed when npm_package_bin is used to build storybook
copy_to_bin(
name = "storybook_data_copy",
srcs = [
".storybook/main.ts",
"package.json",
],
)
exports_files([
".storybook",
"babel.config.js",
"jest.config.js",
"package.json",
"rollup.config.js",
"tsconfig.json",
])
## core ##
# gazelle:exclude node_modules
# gazelle:proto_rule proto_compile implementation stackb:rules_proto:proto_compile
# gazelle:proto_rule proto_ts_library attr args --esModuleInterop
# gazelle:proto_rule proto_ts_library attr args --lib ES2015,DOM
# gazelle:proto_rule ts_proto_library implementation stackb:rules_proto:ts_proto_library
## ts-proto ##
# gazelle:proto_plugin ts_proto implementation stephenh:ts-proto:protoc-gen-ts-proto
# gazelle:proto_plugin ts_proto label //tools/ts-proto:protoc-gen-ts-proto
# gazelle:proto_plugin ts_proto option emitImportedFiles=false
# gazelle:proto_plugin ts_proto option esModuleInterop=true
# gazelle:proto_plugin ts_proto option oneof=unions
# gazelle:proto_plugin ts_proto option outputClientImpl=grpc-web
# gazelle:proto_plugin ts_proto option outputServices=grpc-js
# gazelle:proto_plugin ts_proto option stringEnums=true
# gazelle:proto_plugin ts_proto option useOptionals=true
# gazelle:proto_rule proto_ts_library implementation stackb:rules_proto:proto_ts_library
# gazelle:proto_rule proto_ts_library attr tsc @npm//typescript/bin:tsc
# gazelle:proto_rule proto_ts_library deps @npm//@grpc/grpc-js
# gazelle:proto_rule proto_ts_library deps @npm//@improbable-eng/grpc-web
# gazelle:proto_rule proto_ts_library deps @npm//long
# gazelle:proto_rule proto_ts_library deps @npm//protobufjs
# gazelle:proto_rule proto_ts_library deps @npm//rxjs
# gazelle:proto_language ts_proto plugin ts_proto
# gazelle:proto_language ts_proto rule proto_compile
# gazelle:proto_language ts_proto rule proto_ts_library