forked from angular/dev-infra
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMODULE.bazel
More file actions
111 lines (101 loc) · 5.29 KB
/
MODULE.bazel
File metadata and controls
111 lines (101 loc) · 5.29 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
"""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.2.0")
bazel_dep(name = "tar.bzl", version = "0.5.5")
bazel_dep(name = "aspect_bazel_lib", version = "2.21.1")
bazel_dep(name = "bazel_skylib", version = "1.8.1")
bazel_dep(name = "aspect_rules_js", version = "2.5.0")
bazel_dep(name = "rules_pkg", version = "1.1.0")
bazel_dep(name = "aspect_rules_jasmine", version = "2.0.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "aspect_rules_esbuild", version = "0.22.1")
bazel_dep(name = "aspect_rules_ts", version = "3.7.0")
bazel_dep(name = "rules_nodejs", version = "6.5.0")
bazel_dep(name = "rules_browsers")
git_override(
module_name = "rules_browsers",
commit = "8ee9ae3216ef26516c8ef20537c89857343cdc3a",
remote = "https://github.com/devversion/rules_browsers.git",
)
bazel_dep(name = "rules_sass")
git_override(
module_name = "rules_sass",
commit = "76078d5e9776a0080dcee496e90b88d8a6179c19",
remote = "https://github.com/devversion/rules_sass.git",
)
bazel_dep(name = "rules_angular")
git_override(
module_name = "rules_angular",
commit = "4010ef96de0c46db7764adc2f262258c9de3d718",
remote = "https://github.com/devversion/rules_angular.git",
)
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.2 | jq -r '.dist.integrity'
ts_integrity = "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
ts_version = "5.9.2",
)
use_repo(rules_ts_ext, "npm_typescript")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(
node_repositories = {
"20.19.0-darwin_arm64": ("node-v20.19.0-darwin-arm64.tar.gz", "node-v20.19.0-darwin-arm64", "c016cd1975a264a29dc1b07c6fbe60d5df0a0c2beb4113c0450e3d998d1a0d9c"),
"20.19.0-darwin_amd64": ("node-v20.19.0-darwin-x64.tar.gz", "node-v20.19.0-darwin-x64", "a8554af97d6491fdbdabe63d3a1cfb9571228d25a3ad9aed2df856facb131b20"),
"20.19.0-linux_arm64": ("node-v20.19.0-linux-arm64.tar.xz", "node-v20.19.0-linux-arm64", "dbe339e55eb393955a213e6b872066880bb9feceaa494f4d44c7aac205ec2ab9"),
"20.19.0-linux_ppc64le": ("node-v20.19.0-linux-ppc64le.tar.xz", "node-v20.19.0-linux-ppc64le", "84937108f005679e60b486ed8e801cebfe923f02b76d8e710463d32f82181f65"),
"20.19.0-linux_s390x": ("node-v20.19.0-linux-s390x.tar.xz", "node-v20.19.0-linux-s390x", "11f8ee99d792a83bba7b29911e0229dd6cd5e88987d7416346067db1cc76d89a"),
"20.19.0-linux_amd64": ("node-v20.19.0-linux-x64.tar.xz", "node-v20.19.0-linux-x64", "b4e336584d62abefad31baecff7af167268be9bb7dd11f1297112e6eed3ca0d5"),
"20.19.0-windows_amd64": ("node-v20.19.0-win-x64.zip", "node-v20.19.0-win-x64", "be72284c7bc62de07d5a9fd0ae196879842c085f11f7f2b60bf8864c0c9d6a4f"),
},
node_version = "20.19.0",
)
use_repo(node, "nodejs_toolchains")
rules_angular = use_extension("@rules_angular//setup:extensions.bzl", "rules_angular")
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"})
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/feature-request:package.json",
"@devinfra//github-actions/google-internal-tests: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/pull-request-labeling: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")