@snap/valdi 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bootstrap/modules/ui_component/BUILD.bazel.template +1 -1
- package/.metadata/.bazelrc.template +4 -0
- package/.metadata/.bazelversion.template +1 -1
- package/.metadata/MODULE.bazel.template +48 -6
- package/.metadata/android_ide_common_30_1_3_install.json.template +1818 -0
- package/.metadata/android_mvn_install.json.template +2877 -0
- package/.metadata/maven_install.json.template +444 -0
- package/.metadata/rules_android_maven_install.json.template +4879 -0
- package/README.md +1 -1
- package/bundled-skills/skills/valdi-compiler/skill.md +3 -8
- package/bundled-skills/skills/valdi-component-tests/skill.md +1 -1
- package/bundled-skills/skills/valdi-gestures/skill.md +1 -1
- package/bundled-skills/skills/valdi-mock-breakdown/skill.md +1 -1
- package/bundled-skills/skills/valdi-mock-to-module/scripts/find_icon.py +8 -8
- package/bundled-skills/skills/valdi-mock-to-module/scripts/test_find_icon.py +2 -2
- package/bundled-skills/skills/valdi-perf/skill.md +2 -2
- package/bundled-skills/skills/valdi-polyglot-module/skill.md +5 -1
- package/bundled-skills/skills/valdi-tsx/skill.md +6 -6
- package/dist/commands/agentCheck.js +9 -7
- package/dist/commands/bootstrap.js +15 -4
- package/dist/commands/doctor.js +4 -7
- package/dist/commands/install.js +13 -1
- package/dist/commands/newModule.js +8 -1
- package/dist/commands/webHotreload.js +1 -1
- package/dist/core/constants.js +4 -0
- package/dist/setup/DevSetupHelper.js +11 -2
- package/dist/setup/libtinfo5.js +19 -0
- package/dist/setup/linuxSetup.js +2 -22
- package/dist/utils/BazelClient.js +11 -4
- package/dist/utils/errorUtils.js +1 -1
- package/dist/utils/githubUtils.js +1 -1
- package/dist/utils/iosSimulator.js +136 -0
- package/dist/utils/nonInteractive.js +13 -0
- package/dist/utils/prettierCheck.js +19 -0
- package/package.json +4 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Usage Instructions for This Module
|
|
2
2
|
#
|
|
3
3
|
# Step 1: Add this module to your `BUILD.bazel` file dependencies:
|
|
4
|
-
# `//
|
|
4
|
+
# `//modules/{{MODULE_NAME}}` (adjust to wherever this module lives in your workspace)
|
|
5
5
|
#
|
|
6
6
|
# Step 2: Import the module in your `.tsx` file:
|
|
7
7
|
# `import { NewModuleComponent } from '{{MODULE_NAME}}/src/NewModuleComponent';`
|
|
@@ -4,6 +4,10 @@ common --registry=https://bcr.bazel.build
|
|
|
4
4
|
|
|
5
5
|
common --enable_platform_specific_config
|
|
6
6
|
|
|
7
|
+
# Bazel 8 flipped this to true by default; the generated module BUILD globs src/**/*.ts
|
|
8
|
+
# and Valdi's own packages glob empty dirs.
|
|
9
|
+
common --noincompatible_disallow_empty_glob
|
|
10
|
+
|
|
7
11
|
# Disable workers for repo fetching to prevent OOM
|
|
8
12
|
common --experimental_worker_for_repo_fetching=off
|
|
9
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8.2.1
|
|
@@ -53,7 +53,7 @@ register_toolchains("@local_config_apple_cc_toolchains//:all")
|
|
|
53
53
|
register_toolchains("@llvm_toolchain//:all")
|
|
54
54
|
|
|
55
55
|
# -- Android dependencies ----------------------------------------------------
|
|
56
|
-
bazel_dep(name = "rules_java", version = "
|
|
56
|
+
bazel_dep(name = "rules_java", version = "8.14.0")
|
|
57
57
|
bazel_dep(name = "rules_android", version = "0.6.5")
|
|
58
58
|
# Resolve rules_android from the Valdi registry, which carries the hermetic Android SDK
|
|
59
59
|
# patch (registry/modules/rules_android/0.6.5) so bootstrapped apps build Android targets
|
|
@@ -85,9 +85,9 @@ use_repo(hermetic_ndk_extension, "androidndk")
|
|
|
85
85
|
|
|
86
86
|
register_toolchains("@androidndk//:all")
|
|
87
87
|
|
|
88
|
-
bazel_dep(name = "rules_kotlin", version = "
|
|
89
|
-
single_version_override(module_name = "rules_kotlin", version = "
|
|
90
|
-
bazel_dep(name = "rules_jvm_external", version = "6.
|
|
88
|
+
bazel_dep(name = "rules_kotlin", version = "2.3.10")
|
|
89
|
+
single_version_override(module_name = "rules_kotlin", version = "2.3.10")
|
|
90
|
+
bazel_dep(name = "rules_jvm_external", version = "6.6")
|
|
91
91
|
|
|
92
92
|
# -- Maven (Android) ---------------------------------------------------------
|
|
93
93
|
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
|
|
@@ -144,19 +144,49 @@ maven.install(
|
|
|
144
144
|
aar_import_bzl_label = "@rules_android//rules:rules.bzl",
|
|
145
145
|
use_starlark_android_rules = True,
|
|
146
146
|
version_conflict_policy = "pinned",
|
|
147
|
+
lock_file = "//:android_mvn_install.json",
|
|
147
148
|
)
|
|
148
149
|
|
|
149
150
|
use_repo(maven, "android_mvn")
|
|
150
151
|
|
|
152
|
+
# Unpinned maven repos are resolved by coursier straight from Maven Central,
|
|
153
|
+
# which rate-limits (HTTP 429). With a lock file Bazel's downloader fetches
|
|
154
|
+
# each jar by checksum instead. The root module's lock file wins for a namespace,
|
|
155
|
+
# and Valdi's own pins for these namespaces don't reach this app, so the app
|
|
156
|
+
# pins the ones an Android build fetches. A root tag also replaces the
|
|
157
|
+
# namespace's repositories, so each repeats its declaring module's list.
|
|
158
|
+
# After changing artifacts or bumping a declaring module, repin with
|
|
159
|
+
# `REPIN=1 bazel run @unpinned_<name>//:pin` (add the name to use_repo first).
|
|
160
|
+
maven.install(
|
|
161
|
+
name = "android_ide_common_30_1_3",
|
|
162
|
+
lock_file = "//:android_ide_common_30_1_3_install.json",
|
|
163
|
+
repositories = [
|
|
164
|
+
"https://maven.google.com",
|
|
165
|
+
"https://repo1.maven.org/maven2",
|
|
166
|
+
],
|
|
167
|
+
)
|
|
168
|
+
maven.install(
|
|
169
|
+
name = "maven",
|
|
170
|
+
lock_file = "//:maven_install.json",
|
|
171
|
+
)
|
|
172
|
+
maven.install(
|
|
173
|
+
name = "rules_android_maven",
|
|
174
|
+
lock_file = "//:rules_android_maven_install.json",
|
|
175
|
+
repositories = [
|
|
176
|
+
"https://maven.google.com",
|
|
177
|
+
"https://repo1.maven.org/maven2",
|
|
178
|
+
],
|
|
179
|
+
)
|
|
180
|
+
|
|
151
181
|
# -- Version pins (must match Valdi's MODULE.bazel) ---------------------------
|
|
152
|
-
single_version_override(module_name = "protobuf", version = "
|
|
182
|
+
single_version_override(module_name = "protobuf", version = "29.3")
|
|
153
183
|
single_version_override(module_name = "rules_apple", version = "4.0.0")
|
|
154
184
|
single_version_override(module_name = "rules_pkg", version = "0.9.1")
|
|
155
185
|
single_version_override(module_name = "zlib", version = "1.3.2")
|
|
156
186
|
|
|
157
187
|
# rules_python 1.9.0's hermetic Python toolchain bundles setuptools files whose
|
|
158
188
|
# names contain spaces (e.g. "Lorem ipsum.txt"), which Bazel's build-runfiles
|
|
159
|
-
# cannot materialize on macOS. The patch renames them. It is vendored into this
|
|
189
|
+
# cannot materialize on macOS or Linux. The patch renames them. It is vendored into this
|
|
160
190
|
# app (bzl/patches/...) and referenced with a root-local `//` label on purpose:
|
|
161
191
|
# bzlmod only applies this override from the ROOT module, and `@valdi` resolves
|
|
162
192
|
# to the pinned public release, which may not ship the patch. See the CLI
|
|
@@ -169,6 +199,18 @@ python.single_version_platform_override(
|
|
|
169
199
|
platform = "aarch64-apple-darwin",
|
|
170
200
|
python_version = "3.11.14",
|
|
171
201
|
)
|
|
202
|
+
python.single_version_platform_override(
|
|
203
|
+
patch_strip = 1,
|
|
204
|
+
patches = ["//bzl/patches/rules_python/1.9.0:remove_setuptools_spaces.patch"],
|
|
205
|
+
platform = "aarch64-unknown-linux-gnu",
|
|
206
|
+
python_version = "3.11.14",
|
|
207
|
+
)
|
|
208
|
+
python.single_version_platform_override(
|
|
209
|
+
patch_strip = 1,
|
|
210
|
+
patches = ["//bzl/patches/rules_python/1.9.0:remove_setuptools_spaces.patch"],
|
|
211
|
+
platform = "x86_64-unknown-linux-gnu",
|
|
212
|
+
python_version = "3.11.14",
|
|
213
|
+
)
|
|
172
214
|
|
|
173
215
|
# -- Rust toolchain ------------------------------------------------------------
|
|
174
216
|
# rules_rust only honors rust.toolchain() from the root module, so Valdi's own
|