-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathMODULE.bazel
More file actions
116 lines (105 loc) · 5.4 KB
/
MODULE.bazel
File metadata and controls
116 lines (105 loc) · 5.4 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
"""Rules/toolchains for devinfra with Bazel."""
module(
name = "devinfra",
)
register_toolchains(
"//bazel/git-toolchain:git_linux_toolchain",
"//bazel/git-toolchain:git_macos_x86_toolchain",
"//bazel/git-toolchain:git_macos_arm64_toolchain",
)
bazel_dep(name = "yq.bzl", version = "0.3.6")
bazel_dep(name = "tar.bzl", version = "0.10.1")
bazel_dep(name = "bazel_lib", version = "3.2.2")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "aspect_rules_js", version = "3.0.3")
bazel_dep(name = "rules_pkg", version = "1.2.0")
bazel_dep(name = "aspect_rules_jasmine", version = "2.0.4")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "aspect_rules_esbuild", version = "0.25.1")
bazel_dep(name = "aspect_rules_ts", version = "3.8.8")
bazel_dep(name = "rules_nodejs", version = "6.7.4")
bazel_dep(name = "rules_browsers")
local_path_override(
module_name = "rules_browsers",
path = "bazel/rules/rules_browsers",
)
bazel_dep(name = "rules_sass", dev_dependency = True)
local_path_override(
module_name = "rules_sass",
path = "bazel/rules/rules_sass",
)
bazel_dep(name = "rules_angular", dev_dependency = True)
local_path_override(
module_name = "rules_angular",
path = "bazel/rules/rules_angular",
)
yq = use_extension("@yq.bzl//yq:extensions.bzl", "yq")
use_repo(yq, "yq_toolchains")
rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
rules_ts_ext.deps(
# Obtained by: curl --silent https://registry.npmjs.org/typescript/5.9.3 | jq -r '.dist.integrity'
ts_integrity = "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==",
ts_version = "6.0.2",
)
use_repo(rules_ts_ext, "npm_typescript")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(
node_repositories = {
"24.15.0-darwin_arm64": ("node-v24.15.0-darwin-arm64.tar.gz", "node-v24.15.0-darwin-arm64", "372331b969779ab5d15b949884fc6eaf88d5afe87bde8ba881d6400b9100ffc4"),
"24.15.0-darwin_amd64": ("node-v24.15.0-darwin-x64.tar.gz", "node-v24.15.0-darwin-x64", "ffd5ee293467927f3ee731a553eb88fd1f48cf74eebc2d74a6babe4af228673b"),
"24.15.0-linux_arm64": ("node-v24.15.0-linux-arm64.tar.xz", "node-v24.15.0-linux-arm64", "f3d5a797b5d210ce8e2cb265544c8e482eaedcb8aa409a8b46da7e8595d0dda0"),
"24.15.0-linux_ppc64le": ("node-v24.15.0-linux-ppc64le.tar.xz", "node-v24.15.0-linux-ppc64le", "6a6560a27bd2817013c28c3d917bfe9eebf26bbd4b1d88475190f216cc411fbb"),
"24.15.0-linux_s390x": ("node-v24.15.0-linux-s390x.tar.xz", "node-v24.15.0-linux-s390x", "940d4cbfadf736b34519630a05d144c09f8a5aca291a802f2f559ee1562f6f24"),
"24.15.0-linux_amd64": ("node-v24.15.0-linux-x64.tar.xz", "node-v24.15.0-linux-x64", "472655581fb851559730c48763e0c9d3bc25975c59d518003fc0849d3e4ba0f6"),
"24.15.0-windows_amd64": ("node-v24.15.0-win-x64.zip", "node-v24.15.0-win-x64", "cc5149eabd53779ce1e7bdc5401643622d0c7e6800ade18928a767e940bb0e62"),
},
node_version = "24.15.0",
)
use_repo(node, "nodejs_toolchains")
rules_angular = use_extension("@rules_angular//setup:extensions.bzl", "rules_angular", dev_dependency = True)
rules_angular.setup(
name = "dev_infra_rules_angular_configurable_deps",
angular_compiler_cli = "//:node_modules/@angular/compiler-cli",
typescript = "//:node_modules/typescript",
)
use_repo(rules_angular, rules_angular_configurable_deps = "dev_infra_rules_angular_configurable_deps")
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
pnpm.pnpm(
name = "pnpm",
pnpm_version = "10.33.0",
pnpm_version_integrity = "sha512-EFaLtKavtYyes2MNqQzJUWQXq+vT+rvmc58K55VyjaFJHp21pUTHatjrdXD1xLs9bGN7LLQb/c20f6gjyGSTGQ==",
)
use_repo(pnpm, "pnpm")
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "devinfra_npm",
data = [
"@devinfra//.github/local-actions:package.json",
"@devinfra//.github/local-actions/branch-manager:package.json",
"@devinfra//.github/local-actions/labels-sync:package.json",
"@devinfra//.github/local-actions/lock-closed:package.json",
"@devinfra//:package.json",
"@devinfra//:pnpm-workspace.yaml",
"@devinfra//apps/code-of-conduct:package.json",
"@devinfra//apps/functions:package.json",
"@devinfra//bazel:package.json",
"@devinfra//bazel/spec-bundling/test:package.json",
"@devinfra//github-actions:package.json",
"@devinfra//github-actions/bazel/configure-remote:package.json",
"@devinfra//github-actions/branch-manager:package.json",
"@devinfra//github-actions/browserstack:package.json",
"@devinfra//github-actions/google-internal-tests:package.json",
"@devinfra//github-actions/labeling/issue:package.json",
"@devinfra//github-actions/labeling/pull-request:package.json",
"@devinfra//github-actions/org-file-sync:package.json",
"@devinfra//github-actions/post-approval-changes:package.json",
"@devinfra//github-actions/previews/pack-and-upload-artifact:package.json",
"@devinfra//github-actions/previews/upload-artifacts-to-firebase:package.json",
"@devinfra//github-actions/saucelabs:package.json",
"@devinfra//github-actions/unified-status-check:package.json",
"@devinfra//ng-dev:package.json",
],
npmrc = "@devinfra//:.npmrc",
pnpm_lock = "@devinfra//:pnpm-lock.yaml",
)
use_repo(npm, "devinfra_npm")