void 0.7.1 → 0.7.3

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.
Files changed (167) hide show
  1. package/dist/agents-DqkFfc2c.mjs +151 -0
  2. package/dist/{auth-cmd-DVKi6dzh.mjs → auth-cmd-Dk0acCT5.mjs} +2 -2
  3. package/dist/{better-auth-shared-C9_GHSkR.d.mts → better-auth-shared-CZsIpjey.d.mts} +1 -1
  4. package/dist/{cache-B0BgSTZi.mjs → cache-DGSZ5Bh6.mjs} +2 -2
  5. package/dist/{cancel-deploy-D9OFt5gA.mjs → cancel-deploy-CrY3kt93.mjs} +1 -1
  6. package/dist/cli/cli.mjs +27 -174
  7. package/dist/{client-BUdfE3QJ.mjs → client-DCqnMpDt.mjs} +97 -11
  8. package/dist/{create-project-CN1pF-OQ.mjs → create-project-Bg88Kq_I.mjs} +3 -3
  9. package/dist/{db-BIP2kuEt.mjs → db-ClNu7vYQ.mjs} +13 -13
  10. package/dist/{delete-DJTvwbr-.mjs → delete-DXcX1yQZ.mjs} +2 -2
  11. package/dist/{deploy-BqXz1ycW.mjs → deploy-BkjqNk9U.mjs} +565 -161
  12. package/dist/{domain-B-fIU3VE.mjs → domain-CDQhvYNZ.mjs} +1 -1
  13. package/dist/{env-BwbZJd2x.mjs → env-CnrQY2b6.mjs} +1 -1
  14. package/dist/{env-helpers-Dr9Y7RnE.d.mts → env-helpers-CbeM_7-k.d.mts} +1 -1
  15. package/dist/{gen-U0Ktr4Zd.mjs → gen-C0EY2k27.mjs} +1 -1
  16. package/dist/{handler-B0ds0OHJ.d.mts → handler-dKQWyF-G.d.mts} +3 -3
  17. package/dist/index.d.mts +3 -3
  18. package/dist/index.mjs +13 -12
  19. package/dist/{init-Bb_Qsdq6.mjs → init-CPny6w9D.mjs} +63 -28
  20. package/dist/{link-D4d26PCm.mjs → link-eZ0aiHFK.mjs} +2 -2
  21. package/dist/{list-bQc1eQCZ.mjs → list-ztyEz4TW.mjs} +2 -2
  22. package/dist/{login-RWUDCfdx.mjs → login-B5HHT32i.mjs} +1 -1
  23. package/dist/{logs-DrkTklop.mjs → logs-J4BN0LXd.mjs} +1 -1
  24. package/dist/{mcp-kZ4zg13a.mjs → mcp-Bdu9bnjR.mjs} +1 -1
  25. package/dist/{node-DDfXj10V.mjs → node-DFqMcZR1.mjs} +3 -3
  26. package/dist/pages/client.d.mts +1 -1
  27. package/dist/pages/client.mjs +3 -0
  28. package/dist/pages/head-client.d.mts +1 -1
  29. package/dist/pages/head.d.mts +1 -1
  30. package/dist/pages/index.d.mts +2 -2
  31. package/dist/pages/index.mjs +1 -1
  32. package/dist/pages/islands-plugin.d.mts +1 -1
  33. package/dist/pages/protocol.d.mts +2 -2
  34. package/dist/pages/protocol.mjs +23 -18
  35. package/dist/{prepare-BAtWufvm.mjs → prepare-DKkx-2Kt.mjs} +1 -1
  36. package/dist/{project-cmd-ATFi3kRm.mjs → project-cmd-DKiQYdSd.mjs} +8 -8
  37. package/dist/{protocol-BWzXs2A2.d.mts → protocol-CK4OFwfR.d.mts} +2 -2
  38. package/dist/{rollback-BSyita3C.mjs → rollback-ZNvT8T54.mjs} +1 -1
  39. package/dist/{runner-6Ep3fNQu.mjs → runner-BUPRnMFN.mjs} +1 -1
  40. package/dist/runtime/ai.mjs +1 -1
  41. package/dist/runtime/auth.d.mts +1 -1
  42. package/dist/runtime/better-auth-pg.d.mts +1 -1
  43. package/dist/runtime/better-auth-pg.mjs +2 -2
  44. package/dist/runtime/better-auth.d.mts +1 -1
  45. package/dist/runtime/better-auth.mjs +2 -2
  46. package/dist/runtime/client.d.mts +2 -2
  47. package/dist/runtime/client.mjs +1 -1
  48. package/dist/runtime/env-helpers.d.mts +1 -1
  49. package/dist/runtime/env-public-client.d.mts +1 -1
  50. package/dist/runtime/env-public.d.mts +2 -2
  51. package/dist/runtime/env-public.mjs +1 -1
  52. package/dist/runtime/env.mjs +1 -1
  53. package/dist/runtime/fetch-stream.d.mts +1 -1
  54. package/dist/runtime/fetch-stream.mjs +1 -1
  55. package/dist/runtime/fetch.d.mts +1 -1
  56. package/dist/runtime/fetch.mjs +1 -1
  57. package/dist/runtime/handler.d.mts +1 -1
  58. package/dist/runtime/handler.mjs +1 -1
  59. package/dist/runtime/isr.mjs +1 -1
  60. package/dist/runtime/migration-handler.mjs +2 -2
  61. package/dist/runtime/validator.d.mts +1 -1
  62. package/dist/runtime/ws-server.d.mts +2 -2
  63. package/dist/runtime/ws.d.mts +3 -3
  64. package/dist/{secret-DmjBDxB1.mjs → secret-BXHx515u.mjs} +2 -2
  65. package/dist/{skills-ipldjlKE.mjs → skills-CbuYOthf.mjs} +1 -1
  66. package/package.json +13 -13
  67. package/skills/void/docs/guide/deployment.md +4 -6
  68. package/skills/void/docs/index.md +3 -3
  69. package/skills/void/docs/node_modules/void/AGENTS.md +1 -1
  70. package/skills/void/docs/node_modules/void/node_modules/@types/node/README.md +1 -1
  71. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@types/node/README.md +1 -1
  72. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/AGENTS.md +15 -0
  73. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/README.md +208 -0
  74. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/build.md +21 -0
  75. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/fmt.md +18 -0
  76. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/index.md +31 -0
  77. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/lint.md +24 -0
  78. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/pack.md +17 -0
  79. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/run.md +249 -0
  80. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/staged.md +15 -0
  81. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/test.md +18 -0
  82. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/build.md +40 -0
  83. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/cache.md +119 -0
  84. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/check.md +44 -0
  85. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ci.md +64 -0
  86. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/commit-hooks.md +51 -0
  87. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/create.md +88 -0
  88. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/dev.md +24 -0
  89. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/env.md +102 -0
  90. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/fmt.md +41 -0
  91. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ide-integration.md +101 -0
  92. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/implode.md +23 -0
  93. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/index.md +128 -0
  94. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/install.md +147 -0
  95. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/lint.md +50 -0
  96. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate.md +173 -0
  97. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/pack.md +61 -0
  98. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/run.md +324 -0
  99. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/test.md +35 -0
  100. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/troubleshooting.md +132 -0
  101. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/upgrade.md +49 -0
  102. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/vpx.md +66 -0
  103. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/why.md +39 -0
  104. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/index.md +12 -0
  105. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/team.md +35 -0
  106. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/generator/README.md +35 -0
  107. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/monorepo/README.md +29 -0
  108. package/skills/void/docs/node_modules/void/node_modules/vite-plus/AGENTS.md +15 -0
  109. package/skills/void/docs/node_modules/void/node_modules/vite-plus/README.md +208 -0
  110. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/build.md +21 -0
  111. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/fmt.md +18 -0
  112. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/index.md +31 -0
  113. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/lint.md +24 -0
  114. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/pack.md +17 -0
  115. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/run.md +249 -0
  116. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/staged.md +15 -0
  117. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/test.md +18 -0
  118. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/build.md +40 -0
  119. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/cache.md +119 -0
  120. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/check.md +44 -0
  121. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ci.md +64 -0
  122. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/commit-hooks.md +51 -0
  123. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/create.md +88 -0
  124. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/dev.md +24 -0
  125. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/env.md +102 -0
  126. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/fmt.md +41 -0
  127. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ide-integration.md +101 -0
  128. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/implode.md +23 -0
  129. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/index.md +128 -0
  130. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/install.md +147 -0
  131. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/lint.md +50 -0
  132. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate.md +173 -0
  133. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/pack.md +61 -0
  134. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/run.md +324 -0
  135. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/test.md +35 -0
  136. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/troubleshooting.md +132 -0
  137. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/upgrade.md +49 -0
  138. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/vpx.md +66 -0
  139. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/why.md +39 -0
  140. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/index.md +12 -0
  141. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/team.md +35 -0
  142. package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/generator/README.md +35 -0
  143. package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/monorepo/README.md +29 -0
  144. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tsdown/README.md +0 -55
  145. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/LICENSE.md +0 -2230
  146. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/README.md +0 -20
  147. package/skills/void/docs/node_modules/void/node_modules/tsdown/README.md +0 -55
  148. package/skills/void/docs/node_modules/void/node_modules/vite/LICENSE.md +0 -2230
  149. package/skills/void/docs/node_modules/void/node_modules/vite/README.md +0 -20
  150. /package/dist/{auth-BdsJ0Aff.d.mts → auth-DrfOTMmr.d.mts} +0 -0
  151. /package/dist/{auth-migrations-BAtAck2g.mjs → auth-migrations-BwLPwRgH.mjs} +0 -0
  152. /package/dist/{better-auth-shared-CdYmQGry.mjs → better-auth-shared-APuDaPqW.mjs} +0 -0
  153. /package/dist/{defer-DcxEsVH1.mjs → defer-2ARBu8Et.mjs} +0 -0
  154. /package/dist/{drizzle-NnudE_UN.mjs → drizzle-C-NRqGhx.mjs} +0 -0
  155. /package/dist/{env-raw-BDL4TvdN.mjs → env-raw-DtfQ9E31.mjs} +0 -0
  156. /package/dist/{fetch-error-BQ8sZ5Nd.mjs → fetch-error-CEr0ACTl.mjs} +0 -0
  157. /package/dist/{fetch-error-CVZ5CGA-.d.mts → fetch-error-DflegrF3.d.mts} +0 -0
  158. /package/dist/{head-P-egrtFE.d.mts → head-CZGAunBV.d.mts} +0 -0
  159. /package/dist/{headers-DCXc7mDs.mjs → headers-YVkHjOyq.mjs} +0 -0
  160. /package/dist/{preset-D4I73kT4.mjs → preset-DFvePt0l.mjs} +0 -0
  161. /package/dist/{project-slug-CKam8lF9.mjs → project-slug-KRvHQEQI.mjs} +0 -0
  162. /package/dist/{resolve-project-Br5BR03U.mjs → resolve-project-DdjLQ2tB.mjs} +0 -0
  163. /package/dist/{runner-pg-D0wWHYnr.mjs → runner-pg-BI6f6Ncm.mjs} +0 -0
  164. /package/dist/{standard-schema-9CRjx-uR.d.mts → standard-schema-BfGDWXff.d.mts} +0 -0
  165. /package/dist/{subcommand-prompt-BKjuNAPb.mjs → subcommand-prompt-BMS1TNG5.mjs} +0 -0
  166. /package/dist/{types-mHOEwpW4.d.mts → types-AdKzPp2C.d.mts} +0 -0
  167. /package/dist/{yarn-pnp-BFqMV_bl.mjs → yarn-pnp-6LD6_3Ej.mjs} +0 -0
@@ -0,0 +1,35 @@
1
+ # Vite+ Code Generator Starter
2
+
3
+ A starter for creating a Vite+ code generator.
4
+
5
+ ## Usage
6
+
7
+ From monorepo root:
8
+
9
+ ```bash
10
+ # run and select the generator
11
+ vp create
12
+ ```
13
+
14
+ ## Development
15
+
16
+ ```bash
17
+ # Edit the template
18
+ code src/template.ts
19
+
20
+ # Test the generator CLI
21
+ vp run dev
22
+
23
+ # Run tests
24
+ vp run test
25
+ ```
26
+
27
+ ## Customization
28
+
29
+ Edit `src/template.ts` to customize:
30
+
31
+ - Options schema (using Zod)
32
+ - File generation logic
33
+ - Scripts and suggestions
34
+
35
+ More information about the [Bingo Templates](https://create.bingo/) can be found [here](https://create.bingo/build/concepts/creations).
@@ -0,0 +1,29 @@
1
+ # Vite+ Monorepo Starter
2
+
3
+ A starter for creating a Vite+ monorepo.
4
+
5
+ ## Development
6
+
7
+ - Check everything is ready:
8
+
9
+ ```bash
10
+ vp run ready
11
+ ```
12
+
13
+ - Run the tests:
14
+
15
+ ```bash
16
+ vp run -r test
17
+ ```
18
+
19
+ - Build the monorepo:
20
+
21
+ ```bash
22
+ vp run -r build
23
+ ```
24
+
25
+ - Run the development server:
26
+
27
+ ```bash
28
+ vp run dev
29
+ ```
@@ -0,0 +1,15 @@
1
+ <!--VITE PLUS START-->
2
+
3
+ # Using Vite+, the Unified Toolchain for the Web
4
+
5
+ This project is using Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Vite+ wraps runtime management, package management, and frontend tooling in a single global CLI called `vp`. Vite+ is distinct from Vite, and it invokes Vite through `vp dev` and `vp build`. Run `vp help` to print a list of commands and `vp <command> --help` for information about a specific command.
6
+
7
+ Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/.
8
+
9
+ ## Review Checklist
10
+
11
+ - [ ] Run `vp install` after pulling remote changes and before getting started.
12
+ - [ ] Run `vp check` and `vp test` to format, lint, type check and test changes.
13
+ - [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run <script>`.
14
+
15
+ <!--VITE PLUS END-->
@@ -0,0 +1,208 @@
1
+ # VITE+(⚡︎) Local CLI
2
+
3
+ **The Unified Toolchain for the Web**
4
+ _runtime and package management, create, dev, check, test, build, pack, and monorepo task caching in a single dependency_
5
+
6
+ This package provides the project-local version of Vite+. The global `vite` command automatically delegates to this package for all project-specific tasks.
7
+
8
+ ---
9
+
10
+ Vite+ is the unified entry point for local web development. It combines [Vite](https://vite.dev/), [Vitest](https://vitest.dev/), [Oxlint](https://oxc.rs/docs/guide/usage/linter.html), [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html), [Rolldown](https://rolldown.rs/), [tsdown](https://tsdown.dev/), and [Vite Task](https://github.com/voidzero-dev/vite-task) into one zero-config toolchain that also manages runtime and package manager workflows:
11
+
12
+ - **`vp env`:** Manage Node.js globally and per project
13
+ - **`vp install`:** Install dependencies with automatic package manager detection
14
+ - **`vp dev`:** Run Vite's fast native ESM dev server with instant HMR
15
+ - **`vp check`:** Run formatting, linting, and type checks in one command
16
+ - **`vp test`:** Run tests through bundled Vitest
17
+ - **`vp build`:** Build applications for production with Vite + Rolldown
18
+ - **`vp run`:** Execute monorepo tasks with caching and dependency-aware scheduling
19
+ - **`vp pack`:** Build libraries for npm publishing or standalone app binaries
20
+ - **`vp create` / `vp migrate`:** Scaffold new projects and migrate existing ones
21
+
22
+ All of this is configured from your project root and works across Vite's framework ecosystem.
23
+ Vite+ is fully open-source under the MIT license.
24
+
25
+ ## Getting Started
26
+
27
+ Install Vite+ globally as `vp`:
28
+
29
+ For Linux or macOS:
30
+
31
+ ```bash
32
+ curl -fsSL https://vite.plus | bash
33
+ ```
34
+
35
+ For Windows:
36
+
37
+ ```bash
38
+ irm https://viteplus.dev/install.ps1 | iex
39
+ ```
40
+
41
+ `vp` handles the full development lifecycle such as package management, development servers, linting, formatting, testing and building for production.
42
+
43
+ ## Configuring Vite+
44
+
45
+ Vite+ can be configured using a single `vite.config.ts` at the root of your project:
46
+
47
+ ```ts
48
+ import { defineConfig } from 'vite-plus';
49
+
50
+ export default defineConfig({
51
+ // Standard Vite configuration for dev/build/preview.
52
+ plugins: [],
53
+
54
+ // Vitest configuration.
55
+ test: {
56
+ include: ['src/**/*.test.ts'],
57
+ },
58
+
59
+ // Oxlint configuration.
60
+ lint: {
61
+ ignorePatterns: ['dist/**'],
62
+ },
63
+
64
+ // Oxfmt configuration.
65
+ fmt: {
66
+ semi: true,
67
+ singleQuote: true,
68
+ },
69
+
70
+ // Vite Task configuration.
71
+ run: {
72
+ tasks: {
73
+ 'generate:icons': {
74
+ command: 'node scripts/generate-icons.js',
75
+ envs: ['ICON_THEME'],
76
+ },
77
+ },
78
+ },
79
+
80
+ // `vp staged` configuration.
81
+ staged: {
82
+ '*': 'vp check --fix',
83
+ },
84
+ });
85
+ ```
86
+
87
+ This lets you keep the configuration for your development server, build, test, lint, format, task runner, and staged-file workflow in one place with type-safe config and shared defaults.
88
+
89
+ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such as `.oxlintrc*`, `.oxfmtrc*`, and lint-staged config into `vite.config.ts`.
90
+
91
+ ### CLI Workflows (`vp help`)
92
+
93
+ #### Start
94
+
95
+ - **create** - Create a new project from a template
96
+ - **migrate** - Migrate an existing project to Vite+
97
+ - **config** - Configure hooks and agent integration
98
+ - **staged** - Run linters on staged files
99
+ - **install** (`i`) - Install dependencies
100
+ - **env** - Manage Node.js versions
101
+
102
+ #### Develop
103
+
104
+ - **dev** - Run the development server
105
+ - **check** - Run format, lint, and type checks
106
+ - **lint** - Lint code
107
+ - **fmt** - Format code
108
+ - **test** - Run tests
109
+
110
+ #### Execute
111
+
112
+ - **run** - Run monorepo tasks
113
+ - **exec** - Execute a command from local `node_modules/.bin`
114
+ - **dlx** - Execute a package binary without installing it as a dependency
115
+ - **cache** - Manage the task cache
116
+
117
+ #### Build
118
+
119
+ - **build** - Build for production
120
+ - **pack** - Build libraries
121
+ - **preview** - Preview production build
122
+
123
+ #### Manage Dependencies
124
+
125
+ Vite+ automatically wraps your package manager (pnpm, npm, or Yarn) based on `packageManager` and lockfiles:
126
+
127
+ - **add** - Add packages to dependencies
128
+ - **remove** (`rm`, `un`, `uninstall`) - Remove packages from dependencies
129
+ - **update** (`up`) - Update packages to latest versions
130
+ - **dedupe** - Deduplicate dependencies
131
+ - **outdated** - Check outdated packages
132
+ - **list** (`ls`) - List installed packages
133
+ - **why** (`explain`) - Show why a package is installed
134
+ - **info** (`view`, `show`) - View package metadata from the registry
135
+ - **link** (`ln`) / **unlink** - Manage local package links
136
+ - **pm** - Forward a command to the package manager
137
+
138
+ #### Maintain
139
+
140
+ - **upgrade** - Update `vp` itself to the latest version
141
+ - **implode** - Remove `vp` and all related data
142
+
143
+ ### Scaffolding your first Vite+ project
144
+
145
+ Use `vp create` to create a new project:
146
+
147
+ ```bash
148
+ vp create
149
+ ```
150
+
151
+ You can run `vp create` inside of a project to add new apps or libraries to your project.
152
+
153
+ ### Migrating an existing project
154
+
155
+ You can migrate an existing project to Vite+:
156
+
157
+ ```bash
158
+ vp migrate
159
+ ```
160
+
161
+ ### GitHub Actions
162
+
163
+ Use the official [`setup-vp`](https://github.com/voidzero-dev/setup-vp) action to install Vite+ in GitHub Actions:
164
+
165
+ ```yaml
166
+ - uses: voidzero-dev/setup-vp@v1
167
+ with:
168
+ node-version: '22'
169
+ cache: true
170
+ ```
171
+
172
+ #### Manual Installation & Migration
173
+
174
+ If you are manually migrating a project to Vite+, install these dev dependencies first:
175
+
176
+ ```bash
177
+ npm install -D vite-plus @voidzero-dev/vite-plus-core@latest
178
+ ```
179
+
180
+ You need to add overrides to your package manager for `vite` and `vitest` so that other packages depending on Vite and Vitest will use the Vite+ versions:
181
+
182
+ ```json
183
+ "overrides": {
184
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
185
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
186
+ }
187
+ ```
188
+
189
+ If you are using `pnpm`, add this to your `pnpm-workspace.yaml`:
190
+
191
+ ```yaml
192
+ overrides:
193
+ vite: npm:@voidzero-dev/vite-plus-core@latest
194
+ vitest: npm:@voidzero-dev/vite-plus-test@latest
195
+ ```
196
+
197
+ Or, if you are using Yarn:
198
+
199
+ ```json
200
+ "resolutions": {
201
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
202
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
203
+ }
204
+ ```
205
+
206
+ ## Sponsors
207
+
208
+ Thanks to [namespace.so](https://namespace.so) for powering our CI/CD pipelines with fast, free macOS and Linux runners.
@@ -0,0 +1,21 @@
1
+ # Build Config
2
+
3
+ `vp dev`, `vp build`, and `vp preview` use the standard [Vite configuration](https://vite.dev/config/), including [plugins](https://vite.dev/guide/using-plugins), [aliases](https://vite.dev/config/shared-options#resolve-alias), [`server`](https://vite.dev/config/server-options), [`build`](https://vite.dev/config/build-options) and [`preview`](https://vite.dev/config/preview-options) fields.
4
+
5
+ ## Example
6
+
7
+ ```ts
8
+ import { defineConfig } from 'vite-plus';
9
+
10
+ export default defineConfig({
11
+ server: {
12
+ port: 3000,
13
+ },
14
+ build: {
15
+ sourcemap: true,
16
+ },
17
+ preview: {
18
+ port: 4173,
19
+ },
20
+ });
21
+ ```
@@ -0,0 +1,18 @@
1
+ # Format Config
2
+
3
+ `vp fmt` and `vp check` read Oxfmt settings from the `fmt` block in `vite.config.ts`. See [Oxfmt's configuration](https://oxc.rs/docs/guide/usage/formatter/config.html) for details.
4
+
5
+ ## Example
6
+
7
+ ```ts
8
+ import { defineConfig } from 'vite-plus';
9
+
10
+ export default defineConfig({
11
+ fmt: {
12
+ ignorePatterns: ['dist/**'],
13
+ singleQuote: true,
14
+ semi: true,
15
+ sortPackageJson: true,
16
+ },
17
+ });
18
+ ```
@@ -0,0 +1,31 @@
1
+ # Configuring Vite+
2
+
3
+ Vite+ keeps project configuration in one place: `vite.config.ts`, allowing you to consolidate many top-level configuration files in a single file. You can keep using your Vite configuration such as `server` or `build`, and add Vite+ blocks for the rest of your workflow:
4
+
5
+ ```ts
6
+ import { defineConfig } from 'vite-plus';
7
+
8
+ export default defineConfig({
9
+ server: {},
10
+ build: {},
11
+ preview: {},
12
+
13
+ test: {},
14
+ lint: {},
15
+ fmt: {},
16
+ run: {},
17
+ pack: {},
18
+ staged: {},
19
+ });
20
+ ```
21
+
22
+ ## Vite+ Specific Configuration
23
+
24
+ Vite+ extends the basic Vite configuration with these additions:
25
+
26
+ - [`lint`](/config/lint) for Oxlint
27
+ - [`fmt`](/config/fmt) for Oxfmt
28
+ - [`test`](/config/test) for Vitest
29
+ - [`run`](/config/run) for Vite Task
30
+ - [`pack`](/config/pack) for tsdown
31
+ - [`staged`](/config/staged) for staged-file checks
@@ -0,0 +1,24 @@
1
+ # Lint Config
2
+
3
+ `vp lint` and `vp check` read Oxlint settings from the `lint` block in `vite.config.ts`. See [Oxlint's configuration](https://oxc.rs/docs/guide/usage/linter/config.html) for details.
4
+
5
+ ## Example
6
+
7
+ ```ts
8
+ import { defineConfig } from 'vite-plus';
9
+
10
+ export default defineConfig({
11
+ lint: {
12
+ ignorePatterns: ['dist/**'],
13
+ options: {
14
+ typeAware: true,
15
+ typeCheck: true,
16
+ },
17
+ rules: {
18
+ 'no-console': ['error', { allow: ['error'] }],
19
+ },
20
+ },
21
+ });
22
+ ```
23
+
24
+ We recommend enabling both `options.typeAware` and `options.typeCheck` so `vp lint` and `vp check` can use the full type-aware path.
@@ -0,0 +1,17 @@
1
+ # Pack Config
2
+
3
+ `vp pack` reads tsdown settings from the `pack` block in `vite.config.ts`. See [tsdown's configuration](https://tsdown.dev/options/config-file) for details.
4
+
5
+ ## Example
6
+
7
+ ```ts
8
+ import { defineConfig } from 'vite-plus';
9
+
10
+ export default defineConfig({
11
+ pack: {
12
+ dts: true,
13
+ format: ['esm', 'cjs'],
14
+ sourcemap: true,
15
+ },
16
+ });
17
+ ```
@@ -0,0 +1,249 @@
1
+ # Run Config
2
+
3
+ You can configure Vite Task under the `run` field in `vite.config.ts`. Check out [`vp run`](/guide/run) to learn more about running scripts and tasks with Vite+.
4
+
5
+ ```ts
6
+ import { defineConfig } from 'vite-plus';
7
+
8
+ export default defineConfig({
9
+ run: {
10
+ enablePrePostScripts: true,
11
+ cache: {
12
+ /* ... */
13
+ },
14
+ tasks: {
15
+ /* ... */
16
+ },
17
+ },
18
+ });
19
+ ```
20
+
21
+ ## `run.enablePrePostScripts`
22
+
23
+ - **Type:** `boolean`
24
+ - **Default:** `true`
25
+
26
+ Whether to automatically run `preX`/`postX` package.json scripts as lifecycle hooks when script `X` is executed.
27
+
28
+ When enabled (the default), running a script like `test` will automatically run `pretest` before it and `posttest` after it, if they exist in `package.json`.
29
+
30
+ ```ts
31
+ export default defineConfig({
32
+ run: {
33
+ enablePrePostScripts: false, // Disable pre/post lifecycle hooks
34
+ },
35
+ });
36
+ ```
37
+
38
+ ::: warning
39
+ This option can only be set in the workspace root's `vite.config.ts`. Setting it in a package's config will result in an error.
40
+ :::
41
+
42
+ ## `run.cache`
43
+
44
+ - **Type:** `boolean | { scripts?: boolean, tasks?: boolean }`
45
+ - **Default:** `{ scripts: false, tasks: true }`
46
+
47
+ Controls whether task results are cached and replayed on subsequent runs.
48
+
49
+ ```ts
50
+ export default defineConfig({
51
+ run: {
52
+ cache: {
53
+ scripts: true, // Cache package.json scripts (default: false)
54
+ tasks: true, // Cache task definitions (default: true)
55
+ },
56
+ },
57
+ });
58
+ ```
59
+
60
+ `cache: true` enables both task and script caching, `cache: false` disables both.
61
+
62
+ ## `run.tasks`
63
+
64
+ - **Type:** `Record<string, TaskConfig>`
65
+
66
+ Defines tasks that can be run with `vp run <task>`.
67
+
68
+ ### `command`
69
+
70
+ - **Type:** `string`
71
+
72
+ Defines the shell command to run for the task.
73
+
74
+ ```ts
75
+ tasks: {
76
+ build: {
77
+ command: 'vp build',
78
+ },
79
+ }
80
+ ```
81
+
82
+ Each task defined in `vite.config.ts` must include its own `command`. You cannot define a task in both `vite.config.ts` and `package.json` with the same task name.
83
+
84
+ Commands joined with `&&` are automatically split into independently cached sub-tasks. See [Compound Commands](/guide/run#compound-commands).
85
+
86
+ ### `dependsOn`
87
+
88
+ - **Type:** `string[]`
89
+ - **Default:** `[]`
90
+
91
+ Tasks that must complete successfully before this one starts.
92
+
93
+ ```ts
94
+ tasks: {
95
+ deploy: {
96
+ command: 'deploy-script --prod',
97
+ dependsOn: ['build', 'test'],
98
+ },
99
+ }
100
+ ```
101
+
102
+ Dependencies can reference tasks in other packages using the `package#task` format:
103
+
104
+ ```ts
105
+ dependsOn: ['@my/core#build', '@my/utils#lint'];
106
+ ```
107
+
108
+ See [Task Dependencies](/guide/run#task-dependencies) for details on how explicit and topological dependencies interact.
109
+
110
+ ### `cache`
111
+
112
+ - **Type:** `boolean`
113
+ - **Default:** `true`
114
+
115
+ Whether to cache this task's output. Set to `false` for tasks that should never be cached, like dev servers:
116
+
117
+ ```ts
118
+ tasks: {
119
+ dev: {
120
+ command: 'vp dev',
121
+ cache: false,
122
+ },
123
+ }
124
+ ```
125
+
126
+ ### `env`
127
+
128
+ - **Type:** `string[]`
129
+ - **Default:** `[]`
130
+
131
+ Environment variables included in the cache fingerprint. When any listed variable's value changes, the cache is invalidated.
132
+
133
+ ```ts
134
+ tasks: {
135
+ build: {
136
+ command: 'vp build',
137
+ env: ['NODE_ENV'],
138
+ },
139
+ }
140
+ ```
141
+
142
+ Wildcard patterns are supported: `VITE_*` matches all variables starting with `VITE_`.
143
+
144
+ ```bash
145
+ $ NODE_ENV=development vp run build # first run
146
+ $ NODE_ENV=production vp run build # cache miss: variable changed
147
+ ```
148
+
149
+ ### `untrackedEnv`
150
+
151
+ - **Type:** `string[]`
152
+ - **Default:** see below
153
+
154
+ Environment variables passed to the task process but **not** included in the cache fingerprint. Changing these values won't invalidate the cache.
155
+
156
+ ```ts
157
+ tasks: {
158
+ build: {
159
+ command: 'vp build',
160
+ untrackedEnv: ['CI', 'GITHUB_ACTIONS'],
161
+ },
162
+ }
163
+ ```
164
+
165
+ A set of common environment variables are automatically passed through to all tasks:
166
+
167
+ - **System:** `HOME`, `USER`, `PATH`, `SHELL`, `LANG`, `TZ`
168
+ - **Node.js:** `NODE_OPTIONS`, `COREPACK_HOME`, `PNPM_HOME`
169
+ - **CI/CD:** `CI`, `VERCEL_*`, `NEXT_*`
170
+ - **Terminal:** `TERM`, `COLORTERM`, `FORCE_COLOR`, `NO_COLOR`
171
+
172
+ ### `input`
173
+
174
+ - **Type:** `Array<string | { auto: boolean } | { pattern: string, base: "workspace" | "package" }>`
175
+ - **Default:** `[{ auto: true }]` (auto-inferred)
176
+
177
+ Vite Task automatically detects which files are used by a command (see [Automatic File Tracking](/guide/cache#automatic-file-tracking)). The `input` option can be used to explicitly include or exclude certain files.
178
+
179
+ **Exclude files** from automatic tracking:
180
+
181
+ ```ts
182
+ tasks: {
183
+ build: {
184
+ command: 'vp build',
185
+ // Use `{ auto: true }` to use automatic fingerprinting (default).
186
+ input: [{ auto: true }, '!**/*.tsbuildinfo', '!dist/**'],
187
+ },
188
+ }
189
+ ```
190
+
191
+ **Specify explicit files** only without automatic tracking:
192
+
193
+ ```ts
194
+ tasks: {
195
+ build: {
196
+ command: 'vp build',
197
+ input: ['src/**/*.ts', 'vite.config.ts'],
198
+ },
199
+ }
200
+ ```
201
+
202
+ **Resolve patterns relative to the workspace root** using the object form:
203
+
204
+ ```ts
205
+ tasks: {
206
+ build: {
207
+ command: 'vp build',
208
+ input: [
209
+ { auto: true },
210
+ { pattern: 'shared-config/**', base: 'workspace' },
211
+ ],
212
+ },
213
+ }
214
+ ```
215
+
216
+ The `base` field is required and controls how the glob pattern is resolved:
217
+ - `"package"`: relative to the package directory
218
+ - `"workspace"`: relative to the workspace root
219
+
220
+ **Disable file tracking** entirely and cache only on command/env changes:
221
+
222
+ ```ts
223
+ tasks: {
224
+ greet: {
225
+ command: 'node greet.mjs',
226
+ input: [],
227
+ },
228
+ }
229
+ ```
230
+
231
+ ::: tip
232
+ String glob patterns are resolved relative to the package directory by default. Use the object form with `base: "workspace"` to resolve relative to the workspace root.
233
+ :::
234
+
235
+ ### `cwd`
236
+
237
+ - **Type:** `string`
238
+ - **Default:** package root
239
+
240
+ Working directory for the task, relative to the package root.
241
+
242
+ ```ts
243
+ tasks: {
244
+ 'test-e2e': {
245
+ command: 'vp test',
246
+ cwd: 'tests/e2e',
247
+ },
248
+ }
249
+ ```
@@ -0,0 +1,15 @@
1
+ # Staged Config
2
+
3
+ `vp staged` and `vp config` read staged-file rules from the `staged` block in `vite.config.ts`. See the [Commit hooks guide](/guide/commit-hooks).
4
+
5
+ ## Example
6
+
7
+ ```ts
8
+ import { defineConfig } from 'vite-plus';
9
+
10
+ export default defineConfig({
11
+ staged: {
12
+ '*.{js,ts,tsx,vue,svelte}': 'vp check --fix',
13
+ },
14
+ });
15
+ ```
@@ -0,0 +1,18 @@
1
+ # Test Config
2
+
3
+ `vp test` reads Vitest settings from the `test` block in `vite.config.ts`. See [Vitest's configuration](https://vitest.dev/config/) for details.
4
+
5
+ ## Example
6
+
7
+ ```ts
8
+ import { defineConfig } from 'vite-plus';
9
+
10
+ export default defineConfig({
11
+ test: {
12
+ include: ['src/**/*.test.ts'],
13
+ coverage: {
14
+ reporter: ['text', 'html'],
15
+ },
16
+ },
17
+ });
18
+ ```