-
Notifications
You must be signed in to change notification settings - Fork 11
/
BUILD.plz
42 lines (38 loc) · 871 Bytes
/
BUILD.plz
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
subinclude(
"//build/rules/go:defs",
"//build/rules/js:defs",
)
# Installs Go dependencies.
gomod(
name = "gomod",
visibility = [
"//backend/...",
"//build/tools/...",
],
)
# Installs JS dependencies.
yarn_install(
name = "yarn",
visibility = [
"//build/tools/...",
"//frontend/...",
],
)
# Exposes tsconfig to the frontend targets.
filegroup(
name = "tsconfig",
srcs = [
"tsconfig.base.json",
"tsconfig.json",
],
visibility = ["//frontend/..."],
)
# Exposes the tools file to the build tools targets.
# This is a common convention in Go to have a file named tools.go
# with blank imports of Go tools, so that `go mod tidy` doesn't remove
# them from your `go.mod` file.
export_file(
name = "tools.go",
src = "tools.go",
visibility = ["//build/tools/..."],
)