This repository was archived by the owner on Dec 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
56 lines (49 loc) · 1.42 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
# Add rules here to build your software
# See https://docs.bazel.build/versions/master/build-ref.html#BUILD_files
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
package(default_visibility = ["//:__subpackages__"])
exports_files(
[
"tsconfig.base.json",
# "package.json",
"rules_docker.pr1650.patch",
],
visibility = ["//visibility:public"],
)
# Ignore the node_modules dir
# gazelle:exclude node_modules
# gazelle:build_file_name BUILD.bazel
# gazelle:proto disable
gazelle(
name = "gazelle",
prefix = "github.com/dzintars/bazel",
)
PROTOBUF_DEPS = [
"@npm//protobufjs",
# these deps are needed even though they are not automatic transitive deps of
# protobufjs since if they are not in the runfiles then protobufjs attempts to
# run `npm install` at runtime to get thhem which fails as it tries to access
# the npm cache outside of the sandbox
"@npm//semver",
"@npm//chalk",
"@npm//glob",
"@npm//jsdoc",
"@npm//minimist",
"@npm//tmp",
"@npm//uglify-js",
"@npm//uglify-es",
"@npm//espree",
"@npm//escodegen",
"@npm//estraverse",
]
nodejs_binary(
name = "pbjs",
data = PROTOBUF_DEPS,
entry_point = "@npm//:node_modules/protobufjs/bin/pbjs",
)
nodejs_binary(
name = "pbts",
data = PROTOBUF_DEPS,
entry_point = "@npm//:node_modules/protobufjs/bin/pbts",
)