-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMODULE.bazel
More file actions
137 lines (126 loc) · 5.87 KB
/
Copy pathMODULE.bazel
File metadata and controls
137 lines (126 loc) · 5.87 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
"""Rules/toolchains for components with Bazel."""
module(
name = "components",
)
bazel_dep(name = "yq.bzl", version = "0.3.6")
bazel_dep(name = "rules_nodejs", version = "6.7.4")
bazel_dep(name = "aspect_rules_js", version = "3.1.2")
bazel_dep(name = "rules_pkg", version = "1.2.0")
bazel_dep(name = "tar.bzl", version = "0.10.4")
bazel_dep(name = "bazel_lib", version = "3.3.1")
bazel_dep(name = "aspect_rules_esbuild", version = "0.25.1")
bazel_dep(name = "aspect_rules_jasmine", version = "2.0.4")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "aspect_rules_ts", version = "3.8.9")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "rules_browsers")
git_override(
module_name = "rules_browsers",
commit = "bf27ea46fdbb0209526ca821f1500d4337eb8299",
remote = "https://github.com/angular/rules_browsers.git",
)
bazel_dep(name = "rules_sass")
git_override(
module_name = "rules_sass",
commit = "846437db57b03761ac6af22415919a9763b7be65",
remote = "https://github.com/angular/rules_sass.git",
)
bazel_dep(name = "rules_angular")
git_override(
module_name = "rules_angular",
commit = "19914e2fb677d50b16360dcea8740a1b0dd46172",
remote = "https://github.com/angular/rules_angular.git",
)
bazel_dep(name = "devinfra")
git_override(
module_name = "devinfra",
commit = "f91b383e3128872b21f709d2ae7543344c65526d",
remote = "https://github.com/angular/dev-infra.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(
name = "components_npm_typescript",
# Obtained by: curl --silent https://registry.npmjs.org/typescript/6.0.2 | jq -r '.dist.integrity'
ts_integrity = "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==",
ts_version = "6.0.2",
)
use_repo(rules_ts_ext, **{"npm_typescript": "components_npm_typescript"})
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(
node_repositories = {
"22.22.3-darwin_arm64": ("node-v22.22.3-darwin-arm64.tar.gz", "node-v22.22.3-darwin-arm64", "0da7ff74ef8611328c8212f17943368713a2ad953fb7d89a8c8a0eae87c23207"),
"22.22.3-darwin_amd64": ("node-v22.22.3-darwin-x64.tar.gz", "node-v22.22.3-darwin-x64", "45830ba752fa0d892c6dcd640946669801293cac820a33591ded40ac075198ec"),
"22.22.3-linux_arm64": ("node-v22.22.3-linux-arm64.tar.xz", "node-v22.22.3-linux-arm64", "1c4a9933a5e45bc88f54f70b5f91232c127ec49f1a5989d23fb85824c7adf9b7"),
"22.22.3-linux_ppc64le": ("node-v22.22.3-linux-ppc64le.tar.xz", "node-v22.22.3-linux-ppc64le", "edb5478071bd1375e80195ca52f72823998bb5141b1a09e68bc54b3e2eb67754"),
"22.22.3-linux_s390x": ("node-v22.22.3-linux-s390x.tar.xz", "node-v22.22.3-linux-s390x", "ce398c057830d57a24c458177279a17bc51742d5c22dd4cbe97b10dbd43f2617"),
"22.22.3-linux_amd64": ("node-v22.22.3-linux-x64.tar.xz", "node-v22.22.3-linux-x64", "2e5d13569282d016861fae7c8f935e741693c269101a5bebcf761a5376d1f99f"),
"22.22.3-windows_amd64": ("node-v22.22.3-win-x64.zip", "node-v22.22.3-win-x64", "6c8d54f635feff4df76c2ca80f45332eb2ff57d25226edce36592e51a177ee33"),
},
node_version = "22.22.3",
)
use_repo(node, "nodejs_toolchains")
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
pnpm.pnpm(
name = "pnpm",
pnpm_version = "10.33.2",
pnpm_version_integrity = "sha512-qQ+vb+6rca1sblf5Tg/hoS9dzCLNdU20CulZPraj4LaxLjVAIYuzeuCDQEsfLObbKkEh6XmCm0r/lLmfSdoc+A==",
)
use_repo(pnpm, "pnpm")
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "npm",
custom_postinstalls = {
"@angular/animations": "node ../../@nginfra/angular-linking/index.mjs",
"@angular/common": "node ../../@nginfra/angular-linking/index.mjs",
"@angular/forms": "node ../../@nginfra/angular-linking/index.mjs",
"@angular/localize": "node ../../@nginfra/angular-linking/index.mjs",
"@angular/platform-browser": "node ../../@nginfra/angular-linking/index.mjs",
"@angular/platform-server": "node ../../@nginfra/angular-linking/index.mjs",
"@angular/router": "node ../../@nginfra/angular-linking/index.mjs",
},
data = [
"//:package.json",
"//:pnpm-workspace.yaml",
"//src/angular:package.json",
"//src/angular-experimental:package.json",
"//src/components-examples:package.json",
"//src/journey-maps:package.json",
"//src/journey-maps-wc:package.json",
],
npmrc = "//:.npmrc",
package_visibility = {
"@sbb-esta/angular": [
"//integration:__subpackages__",
"//docs:__subpackages__",
"//src/components-examples:__subpackages__",
"//src/journey-maps-wc:__subpackages__",
],
"@sbb-esta/angular-experimental": [
"//integration:__subpackages__",
"//docs:__subpackages__",
"//src/components-examples:__subpackages__",
],
"@sbb-esta/journey-maps": [
"//integration:__subpackages__",
"//docs:__subpackages__",
"//src/components-examples:__subpackages__",
"//src/journey-maps-wc:__subpackages__",
],
"@sbb-esta/journey-maps-wc": [
"//integration:__subpackages__",
"//docs:__subpackages__",
"//src/components-examples:__subpackages__",
],
},
pnpm_lock = "//:pnpm-lock.yaml",
)
use_repo(npm, "npm")
rules_angular = use_extension("@rules_angular//setup:extensions.bzl", "rules_angular")
rules_angular.setup(
name = "components_rules_angular_configurable_deps",
angular_compiler_cli = "//:node_modules/@angular/compiler-cli",
typescript = "//:node_modules/typescript",
)
use_repo(rules_angular, **{"rules_angular_configurable_deps": "components_rules_angular_configurable_deps"})