-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
93 lines (76 loc) · 1.91 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Add rules here to build your software
# See https://docs.bazel.build/versions/master/build-ref.html#BUILD_files
# Allow any ts_library rules in this workspace to reference the config
# Note: if you move the tsconfig.json file to a subdirectory, you can add an alias() here instead
# so that ts_library rules still use it by default.
# See https://www.npmjs.com/package/@bazel/typescript#installation
load("//js:rules.bzl", "copy_to_bin", "js_library")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("//ts:rules.bzl", "ts_config")
load("@npm//:renovate/package_json.bzl", "bin")
load("@npm//:defs.bzl", "npm_link_all_packages")
package(default_visibility = [":__subpackages__"])
# Useful commands to run!
alias(
name = "fix",
actual = "//bzl:fix",
)
alias(
name = "pnpm",
# bazel run -- //:pnpm --dir $PWD
actual = "@pnpm//:pnpm",
)
buildifier(
name = "buildifier",
)
ts_config(
name = "tsconfig",
src = "tsconfig.json",
)
js_library(
name = "base_defs",
srcs = ["Global.d.ts"],
)
exports_files(
[
".prettierrc.json",
"package.json",
".gitignore",
".editorconfig",
".eslintrc.json",
"css_loader.d.ts",
".git",
"jsconfig.json",
],
visibility = ["//visibility:public"],
)
copy_to_bin(
name = "swcrc",
srcs = [".swcrc.json"],
)
copy_to_bin(
name = "prettierrc",
srcs = [".prettierrc.json"],
)
copy_to_bin(
name = "eslintrc",
srcs = [".eslintrc.json"],
)
copy_to_bin(
name = "gitignore",
srcs = [".gitignore"],
)
copy_to_bin(
name = "editorconfig",
srcs = [".editorconfig"],
)
copy_to_bin(
name = "package_json",
srcs = ["package.json"],
)
bin.renovate_config_validator_test(
name = "validate_renovate_config_test",
args = ["$(location renovate.json)"],
data = ["renovate.json"],
)
npm_link_all_packages(name = "node_modules")