vite-plus 1.5.1 → 1.6.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/binding/index.cjs +57 -56
- package/binding/index.d.cts +9 -0
- package/dist/{agent-CowvWq3j.js → agent-CTG3B-ec.js} +2 -2
- package/dist/bin.js +21 -6
- package/dist/{comparison-CmVirWIW-UlEf2maz.js → comparison-CmVirWIW-Z8p6CfWL.js} +4 -1
- package/dist/config/bin.js +2 -2
- package/dist/constants-DXqV1vWL.js +77 -0
- package/dist/create/bin.js +29 -34
- package/dist/{define-config-XKYhw0xH.js → define-config-CeYkQCqG.js} +1 -1
- package/dist/{define-config-BGCfAiIo.cjs → define-config-jt2Hyhp2.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{editor-BVaNnIey.js → editor-C0U0Ymqk.js} +213 -83
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +9 -8
- package/dist/{oxlint-plugin-config-5hVqz4kj.js → oxlint-plugin-config-DvBRM_Se.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +1 -1
- package/dist/{package-DLUCo6L_.js → package-CK48ZXBV.js} +1 -1
- package/dist/{constants-D5f7inVN.js → package-Cc9gI1u1.js} +2 -77
- package/dist/{package-overrides-Ci8GXouY.js → package-overrides-nw4zcITi.js} +1 -1
- package/dist/{prompts-DLpJGhfK.js → prompts-JkuWOV60.js} +9 -5
- package/dist/{resolve-vite-config-D7IUZYKq.js → resolve-vite-config-CfUvxuCo.js} +1 -1
- package/dist/{resolve-vite-config-D-JtjGRa.js → resolve-vite-config-x5QVnaf4.js} +2 -2
- package/dist/staged/bin.js +1 -1
- package/dist/sync-versions/bin.js +1 -1
- package/dist/toolchain.js +7 -7
- package/dist/toolchain.json +7 -7
- package/dist/{tsconfig-DLERIAbF.js → tsconfig-CZlh956U.js} +1 -1
- package/dist/{tsconfig-D3DiCiW6.js → tsconfig-DUR3fhIX.js} +2 -2
- package/dist/user-agent-CpEaSTwI.js +6 -0
- package/dist/version.js +3 -2
- package/dist/versions.js +3 -3
- package/dist/vpx-bin.js +2 -0
- package/docs/config/run.md +8 -7
- package/docs/guide/automatic-data-tracking.md +138 -0
- package/docs/guide/check.md +13 -0
- package/docs/guide/global-cli.md +12 -2
- package/docs/guide/migrate-rules.md +3 -1
- package/docs/guide/migrate.md +4 -4
- package/docs/guide/run.md +22 -0
- package/package.json +17 -17
package/docs/guide/run.md
CHANGED
|
@@ -354,12 +354,34 @@ Task Details:
|
|
|
354
354
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
355
355
|
```
|
|
356
356
|
|
|
357
|
+
When a task misses the cache, the summary lists every change that caused the miss. Use `-vv` (or `--verbose --verbose`) to also list each cached run's unchanged inputs, under `Unchanged:`, and the files a cache hit restores, under `Outputs:`. If a run hits the cache when you expected a miss, `-vv` shows whether the file you edited is an input at all.
|
|
358
|
+
|
|
357
359
|
Use `--last-details` to show the summary from the last run without running tasks again:
|
|
358
360
|
|
|
359
361
|
```bash
|
|
360
362
|
vp run --last-details
|
|
361
363
|
```
|
|
362
364
|
|
|
365
|
+
## Dry Runs And JSON Output
|
|
366
|
+
|
|
367
|
+
`--dry-run` shows what a run would do without running anything. It prints each command with its cache status, then the summary. Vite Task checks the cache as a real run would, but writes nothing:
|
|
368
|
+
|
|
369
|
+
```bash
|
|
370
|
+
vp run --dry-run -r build
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
`--json` prints JSON instead of text, for scripts and agents:
|
|
374
|
+
|
|
375
|
+
- `vp run --json`, with no task or other flags, prints every package and task in the workspace, with each task's `dependsOn` resolved, and runs nothing. See the [task graph schema](https://github.com/voidzero-dev/vite-task/blob/cb1ea8d214b26a0f3ca2b2ef3b6bc471b18ffacb/crates/vt/schemas/task-graph.json).
|
|
376
|
+
- `vp run --dry-run --json build` prints the plan for a run: each task it would run, the tasks each one waits for, each step's command, and whether each step would hit the cache. With a task, `--json` only works together with `--dry-run`. See the [run plan schema](https://github.com/voidzero-dev/vite-task/blob/cb1ea8d214b26a0f3ca2b2ef3b6bc471b18ffacb/crates/vt/schemas/run-plan.json).
|
|
377
|
+
|
|
378
|
+
Add `-v` or `-vv` for more detail:
|
|
379
|
+
|
|
380
|
+
- On its own, `--dry-run` shows the first change it finds behind each miss. With `-v`, the summary lists every change.
|
|
381
|
+
- `-vv` with `--dry-run --json` adds each step's `baseline.fingerprint` and `baseline.outputs`: the inputs its cached run recorded, and the outputs a hit would restore.
|
|
382
|
+
|
|
383
|
+
Put these flags before the task name. Anything after the task name is passed to the task.
|
|
384
|
+
|
|
363
385
|
## Concurrency
|
|
364
386
|
|
|
365
387
|
By default, up to 4 tasks run at the same time. Use `--concurrency-limit` to change this:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -345,9 +345,9 @@
|
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
"dependencies": {
|
|
348
|
-
"@oxc-project/runtime": "=0.
|
|
349
|
-
"@oxc-project/types": "=0.
|
|
350
|
-
"@oxlint/plugins": "=1.
|
|
348
|
+
"@oxc-project/runtime": "=0.158.0",
|
|
349
|
+
"@oxc-project/types": "=0.158.0",
|
|
350
|
+
"@oxlint/plugins": "=1.93.0",
|
|
351
351
|
"@vitest/browser": "5.1.0",
|
|
352
352
|
"@vitest/browser-preview": "5.1.0",
|
|
353
353
|
"@vitest/mocker": "5.1.0",
|
|
@@ -355,10 +355,10 @@
|
|
|
355
355
|
"@vitest/snapshot": "5.1.0",
|
|
356
356
|
"@vitest/spy": "5.1.0",
|
|
357
357
|
"@vitest/utils": "5.1.0",
|
|
358
|
-
"oxfmt": "=0.
|
|
359
|
-
"oxlint": "=1.
|
|
360
|
-
"oxlint-tsgolint": "=7.0.
|
|
361
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@1.
|
|
358
|
+
"oxfmt": "=0.78.0",
|
|
359
|
+
"oxlint": "=1.93.0",
|
|
360
|
+
"oxlint-tsgolint": "=7.0.2006",
|
|
361
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.6.0",
|
|
362
362
|
"vitest": "5.1.0"
|
|
363
363
|
},
|
|
364
364
|
"devDependencies": {
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
371
371
|
"@vitest/browser-playwright": "5.1.0",
|
|
372
372
|
"@vitest/browser-webdriverio": "5.0.0",
|
|
373
|
-
"@voidzero-dev/vite-plus-prompts": "1.
|
|
373
|
+
"@voidzero-dev/vite-plus-prompts": "1.6.0",
|
|
374
374
|
"@voidzero-dev/vite-task-client": "0.2.0",
|
|
375
375
|
"bingo": "^0.13.2",
|
|
376
376
|
"cac": "^7.1.0",
|
|
@@ -424,14 +424,14 @@
|
|
|
424
424
|
"node": "^22.18.0 || ^24.11.0 || >=26.0.0"
|
|
425
425
|
},
|
|
426
426
|
"optionalDependencies": {
|
|
427
|
-
"@voidzero-dev/vite-plus-darwin-arm64": "1.
|
|
428
|
-
"@voidzero-dev/vite-plus-darwin-x64": "1.
|
|
429
|
-
"@voidzero-dev/vite-plus-linux-arm64-gnu": "1.
|
|
430
|
-
"@voidzero-dev/vite-plus-linux-arm64-musl": "1.
|
|
431
|
-
"@voidzero-dev/vite-plus-linux-x64-gnu": "1.
|
|
432
|
-
"@voidzero-dev/vite-plus-linux-x64-musl": "1.
|
|
433
|
-
"@voidzero-dev/vite-plus-win32-x64-msvc": "1.
|
|
434
|
-
"@voidzero-dev/vite-plus-win32-arm64-msvc": "1.
|
|
427
|
+
"@voidzero-dev/vite-plus-darwin-arm64": "1.6.0",
|
|
428
|
+
"@voidzero-dev/vite-plus-darwin-x64": "1.6.0",
|
|
429
|
+
"@voidzero-dev/vite-plus-linux-arm64-gnu": "1.6.0",
|
|
430
|
+
"@voidzero-dev/vite-plus-linux-arm64-musl": "1.6.0",
|
|
431
|
+
"@voidzero-dev/vite-plus-linux-x64-gnu": "1.6.0",
|
|
432
|
+
"@voidzero-dev/vite-plus-linux-x64-musl": "1.6.0",
|
|
433
|
+
"@voidzero-dev/vite-plus-win32-x64-msvc": "1.6.0",
|
|
434
|
+
"@voidzero-dev/vite-plus-win32-arm64-msvc": "1.6.0"
|
|
435
435
|
},
|
|
436
436
|
"scripts": {
|
|
437
437
|
"build": "oxnode -C dev ./build.ts",
|