vite-plus 0.2.7 → 0.2.9
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/AGENTS.md +7 -0
- package/LICENSE +5 -1
- package/README.md +9 -3
- package/bin/vpr +3 -2
- package/binding/index.cjs +193 -80
- package/binding/index.d.cts +106 -11
- package/dist/agent-DQU8uS6P.js +416 -0
- package/dist/bin.js +1388 -23
- package/dist/{cli-truncate-BVOlIIPy.js → cli-truncate-Bg3RDXpi.js} +0 -2
- package/dist/client/bundledDevClient.mjs +1 -0
- package/dist/config/bin.js +32 -133
- package/dist/{constants-BsuzPowC.js → constants-CG513DRa.js} +10 -2
- package/dist/create/bin.js +255 -268
- package/dist/{define-config-C2KfLHpC.js → define-config-CV4bQG_8.js} +3 -3
- package/dist/{define-config-eLQH9us2.d.ts → define-config-DWoAkNdp.d.ts} +16 -0
- package/dist/{define-config-DLh9fE95.cjs → define-config-DyNLA_f0.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{dist-CKz3vcoG.js → dist-BDYZP12R.js} +196 -157
- package/dist/dist-Dqv1-Clg.js +3 -0
- package/dist/{agent-CPwWJ4qf.js → editor-g4PosU99.js} +819 -628
- package/dist/hooks/bin.d.ts +1 -0
- package/dist/hooks/bin.js +130 -0
- package/dist/hooks-pNCBWtFT.js +570 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-DiRs8ceZ.js → json-qlK6UH0r.js} +40 -38
- package/dist/migration/bin.js +65 -58
- package/dist/{oxlint-plugin-config-Bxgc4cwF.js → oxlint-plugin-config-BEZ9IUf7.js} +1 -1
- package/dist/oxlint-plugin.js +1 -1
- package/dist/pack-bin.js +1 -1
- package/dist/{package-Ds3uThLb.js → package-B4T8RGMG.js} +2 -2
- package/dist/{tsconfig-Jia2vgMG.js → prompts-CHz_98bJ.js} +169 -219
- package/dist/{resolve-vite-config-BiuLZnn8.js → resolve-vite-config-Dmeyeyj-.js} +2 -9
- package/dist/{rolldown-runtime-C7HZzL1F.js → rolldown-runtime-CMFfr-1z.js} +1 -1
- package/dist/staged/bin.js +241 -226
- package/dist/terminal-Bz-ps6rJ.js +128 -0
- package/dist/test/browser/providers/playwright/context.d.ts +1 -1
- package/dist/test/browser/providers/playwright.d.ts +6 -6
- package/dist/test/browser/providers/preview/context.d.ts +1 -1
- package/dist/test/browser/providers/preview.d.ts +4 -4
- package/dist/test/browser/providers/webdriverio/context.d.ts +1 -1
- package/dist/test/browser/providers/webdriverio.d.ts +6 -6
- package/dist/test/browser-playwright/context.d.ts +1 -1
- package/dist/test/browser-playwright.d.ts +6 -6
- package/dist/test/browser-preview/context.d.ts +1 -1
- package/dist/test/browser-preview.d.ts +4 -4
- package/dist/test/browser-webdriverio/context.d.ts +1 -1
- package/dist/test/browser-webdriverio.d.ts +6 -6
- package/dist/test/context.d.ts +3 -3
- package/dist/test/locators.d.ts +1 -1
- package/dist/toolchain.d.ts +25 -0
- package/dist/toolchain.js +194 -0
- package/dist/toolchain.json +193 -0
- package/dist/tsconfig-7v_BHagU.js +151 -0
- package/dist/{tsgolint-path-B-yOos8p.js → tsgolint-path-CbDReEOx.js} +5 -3
- package/dist/tsgolint-path.js +1 -1
- package/dist/version.js +6 -6
- package/dist/versions.d.ts +3 -3
- package/dist/versions.js +6 -6
- package/docs/config/index.md +13 -0
- package/docs/config/staged.md +2 -1
- package/docs/guide/ci.md +37 -4
- package/docs/guide/commit-hooks.md +112 -21
- package/docs/guide/create.md +7 -4
- package/docs/guide/env.md +8 -4
- package/docs/guide/fmt.md +2 -2
- package/docs/guide/github-actions-cache.md +5 -1
- package/docs/guide/ide-integration.md +61 -2
- package/docs/guide/index.md +4 -2
- package/docs/guide/install.md +27 -0
- package/docs/guide/installer-env-vars.md +14 -3
- package/docs/guide/lint.md +3 -1
- package/docs/guide/migrate.md +49 -4
- package/docs/guide/monorepo.md +98 -10
- package/docs/guide/troubleshooting.md +12 -3
- package/docs/guide/upgrade.md +27 -4
- package/docs/package.json +1 -1
- package/docs/pnpm-workspace.yaml +7 -0
- package/docs/vite.config.ts +3 -0
- package/package.json +21 -23
- package/rules/vite-tools.yml +0 -7
- package/dist/dist-CtM2JRbM.js +0 -3
- package/dist/editor-BbT1lTNc.js +0 -675
- package/dist/help-YP84FSEz.js +0 -61
- package/dist/terminal-uTv0ZaMr.js +0 -33
- package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
package/AGENTS.md
CHANGED
|
@@ -10,6 +10,13 @@ Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.de
|
|
|
10
10
|
|
|
11
11
|
`vp <name>` runs a built-in command. `vp run <name>` runs a `package.json` script or a `vite.config.ts` task. Scripts cannot overwrite built-ins, so `vp dev` and `vp run dev` may do different things. Check `package.json` and `vite.config.ts` first, and run `vp run <name>` when the project defines a script or task with that name.
|
|
12
12
|
|
|
13
|
+
## Tool Versions
|
|
14
|
+
|
|
15
|
+
Run `vp toolchain` to show versions and relationships in the active Vite+
|
|
16
|
+
release. Add a tool name to select part of the graph. For example, run
|
|
17
|
+
`vp toolchain vite`. Use `--global` to ignore the local `vite-plus` package. Use
|
|
18
|
+
`vp why <package>` to show the package-manager dependency graph.
|
|
19
|
+
|
|
13
20
|
## Review Checklist
|
|
14
21
|
|
|
15
22
|
- [ ] Run `vp install` after pulling remote changes and before getting started.
|
package/LICENSE
CHANGED
|
@@ -494,11 +494,15 @@ Repository: https://github.com/listr2/listr2
|
|
|
494
494
|
|
|
495
495
|
---------------------------------------
|
|
496
496
|
|
|
497
|
-
## lru-cache
|
|
497
|
+
## lru-cache, path-scurry
|
|
498
498
|
License: BlueOak-1.0.0
|
|
499
499
|
By: Isaac Z. Schlueter <i@izs.me>
|
|
500
500
|
Repository: https://github.com/isaacs/node-lru-cache
|
|
501
501
|
|
|
502
|
+
License: BlueOak-1.0.0
|
|
503
|
+
By: Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me)
|
|
504
|
+
Repository: https://github.com/isaacs/path-scurry
|
|
505
|
+
|
|
502
506
|
> # Blue Oak Model License
|
|
503
507
|
>
|
|
504
508
|
> Version 1.0.0
|
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ Vite+ is the unified entry point for local web development. It combines [Vite](h
|
|
|
17
17
|
- **`vp build`:** Build applications for production with Vite + Rolldown
|
|
18
18
|
- **`vp run`:** Run `package.json` scripts and monorepo tasks with caching and dependency-aware scheduling
|
|
19
19
|
- **`vp pack`:** Build libraries for npm publishing or standalone app binaries
|
|
20
|
+
- **`vp toolchain`:** Show the versions of Vite+, Vite, Rolldown, Oxc, and other tools
|
|
20
21
|
- **`vp create` / `vp migrate`:** Scaffold new projects and migrate existing ones
|
|
21
22
|
|
|
22
23
|
All of this is configured from your project root and works across Vite's framework ecosystem.
|
|
@@ -139,6 +140,7 @@ Vite+ automatically wraps your package manager (pnpm, npm, Yarn, or Bun) based o
|
|
|
139
140
|
|
|
140
141
|
#### Maintain
|
|
141
142
|
|
|
143
|
+
- **toolchain** - Show Vite+ tool versions and their relationships
|
|
142
144
|
- **upgrade** - Update `vp` itself to the latest version
|
|
143
145
|
- **implode** - Remove `vp` and all related data
|
|
144
146
|
|
|
@@ -175,21 +177,25 @@ vp migrate
|
|
|
175
177
|
Use the official [`setup-vp`](https://github.com/voidzero-dev/setup-vp) action to install Vite+ in GitHub Actions:
|
|
176
178
|
|
|
177
179
|
```yaml
|
|
178
|
-
- uses: voidzero-dev/setup-vp
|
|
180
|
+
- uses: voidzero-dev/setup-vp@<setup-vp-version>
|
|
179
181
|
with:
|
|
180
182
|
node-version: '22'
|
|
181
183
|
cache: true
|
|
182
184
|
```
|
|
183
185
|
|
|
186
|
+
Set `<setup-vp-version>` to an exact version from the [`setup-vp` releases page](https://github.com/voidzero-dev/setup-vp/releases). You can use a commit SHA instead. Do not use the `v1` tag. The `v1` tag no longer receives updates.
|
|
187
|
+
|
|
188
|
+
See [Automatic Version Updates](https://viteplus.dev/guide/ci#automatic-version-updates) to configure Dependabot or Renovate.
|
|
189
|
+
|
|
184
190
|
#### Manual Installation & Migration
|
|
185
191
|
|
|
186
192
|
If you are manually migrating a project to Vite+, install these dev dependencies first:
|
|
187
193
|
|
|
188
194
|
```bash
|
|
189
|
-
|
|
195
|
+
vp install -D vite-plus
|
|
190
196
|
```
|
|
191
197
|
|
|
192
|
-
|
|
198
|
+
Add package-manager overrides so that other packages use the Vite+ versions. Alias `vite` to `@voidzero-dev/vite-plus-core`. Pin `vitest` to the version from `vp toolchain vitest`. The project and `vp test` then use the same Vitest copy. Without the pin, a dependency or workspace package can install a different Vitest version. The two versions can use separate mocks, `expect` functions, and runner states:
|
|
193
199
|
|
|
194
200
|
```json
|
|
195
201
|
"overrides": {
|
package/bin/vpr
CHANGED
|
@@ -4,6 +4,7 @@ import module from 'node:module';
|
|
|
4
4
|
if (module.enableCompileCache) {
|
|
5
5
|
module.enableCompileCache();
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
// Dynamic import so it runs AFTER enableCompileCache above (a static
|
|
8
|
+
// import is hoisted and would load the CLI bundle uncached). The argv
|
|
9
|
+
// rewrite to `run` lives in bin.ts (keyed on argv0).
|
|
9
10
|
await import('../dist/bin.js');
|