Commit a9c7034
feat: integrate vite-task runner-aware tools (auto output + tracked envs) (#1774)
Integrates the runner-aware-tools work now available on
`vite-task/main`: Vite reports its inputs/outputs/envs to the `vp`
runner via `@voidzero-dev/vite-task-client`, so `vp build` no longer
needs a hand-synthesized cache config. This enables auto output
restoration and auto tracked envs through the runner protocol.
## Changes
- **Bump vite-task git deps to `82ec12b2`** (latest `main`):
runner-aware IPC server/client + embedded napi addon, tracked env
fingerprinting, automatic output tracking/restoration by default,
per-schema-version cache directories, and prefix-env executable lookup
fixes. Regenerate the napi binding (`RunnerClient`/`load` exports) and
`run-config.ts` for the new task-config types (`AutoTracking`).
- **Point the vite behind `vp build`/`vp dev` to latest vitejs/vite
(`c13a37b53`)**, which carries the vite-task-client integration. vite
lists `@voidzero-dev/vite-task-client` in **devDependencies**, so it is
bundled into vite's output, and therefore into
`@voidzero-dev/vite-plus-core`, the same way as vite's other bundled
deps (cac, esbuild, ...). No extra runtime dependency or build wiring is
needed.
- **Remove `vp build`'s synthetic cache config** (`env: ["VITE_*"]`,
manual input excludes). The all-`None` `EnabledCacheConfig` keeps
caching enabled with auto input/output inference; vite's
`ignoreInput`/`ignoreOutput`/`getEnv`/`getEnvs` refine the fingerprint
at runtime. `vp dev` stays `disabled()`.
- **Docs**: update cache/run docs for automatic output restoration by
default and `output: []` as the opt-out.
- **Snap tests**: `vp-build-auto-output-restoration` (dist restored on
cache hit without a synthetic `output` config) and
`vp-build-auto-tracked-env` (a `VITE_` env change invalidates the cache
and names the changed env). Edge cases live in vite-task.
## Notes
- The vite-task stack has landed on `main`; this PR now pins latest
`main` (`82ec12b2`). Changelog diff for the latest repin:
voidzero-dev/vite-task@68fb22e...82ec12b#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
- rolldown stays at main's pin (`c462c7c5`, v1.1.0), which is compatible
with vite `c13a37b53`'s rolldown `1.0.3` requirement.
---------
Co-authored-by: MK <fengmk2@gmail.com>1 parent b386620 commit a9c7034
30 files changed
Lines changed: 377 additions & 77 deletions
File tree
- .github/workflows
- packages
- cli
- binding/src/cli
- snap-tests
- build-vite-env
- plain-terminal-ui-nested
- plain-terminal-ui
- vp-build-auto-output-restoration
- vp-build-auto-tracked-env
- vp-fmt-cache
- src
- vp-lint-cache
- src
- src
- core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
0 commit comments