-
Notifications
You must be signed in to change notification settings - Fork 125
chore: use vp hooks #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use vp hooks #680
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "mcpServers": { | ||
| "vite-plus": { | ||
| "command": "npx", | ||
| "args": ["vp", "mcp"] | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../node_modules/vite-plus/skills/vite-plus |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| vp staged | ||
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -136,3 +136,83 @@ Vite+ automatically detects and wraps the underlying package manager such as pnp | |||||||||||||||||||||||||
| - [ ] Run `vite install` after pulling remote changes and before getting started. | ||||||||||||||||||||||||||
| - [ ] Run `vite lint`, `vite fmt`, and `vite test` to validate changes. | ||||||||||||||||||||||||||
| <!--VITE PLUS END--> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <!--injected-by-vite-plus-v0.1.4--> | ||||||||||||||||||||||||||
| <!--VITE PLUS START--> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| # Using Vite+, the Unified Toolchain for the Web | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| 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, but it invokes Vite through `vp dev` and `vp build`. | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ## Vite+ Workflow | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| `vp` is a global binary that handles the full development lifecycle. Run `vp help` to print a list of commands and `vp <command> --help` for information about a specific command. | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ### Start | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
Comment on lines
+140
to
+152
|
||||||||||||||||||||||||||
| <!--injected-by-vite-plus-v0.1.4--> | |
| <!--VITE PLUS START--> | |
| # Using Vite+, the Unified Toolchain for the Web | |
| 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, but it invokes Vite through `vp dev` and `vp build`. | |
| ## Vite+ Workflow | |
| `vp` is a global binary that handles the full development lifecycle. Run `vp help` to print a list of commands and `vp <command> --help` for information about a specific command. | |
| ### Start |
Copilot
AI
Mar 10, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a second <!--VITE PLUS START--> ... <!--VITE PLUS END--> block immediately after an existing <!--VITE PLUS END-->, which makes the document contain two Vite+ sections and looks like an accidental duplicate injection. Consider keeping a single Vite+ block (remove the older one or avoid committing the injected block) to prevent confusing/duplicated guidance.
| <!--VITE PLUS END--> | |
| <!-- Duplicate Vite+ block end marker removed; keep a single VITE PLUS section --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -66,7 +66,7 @@ | |||||
| "ci": "vp run cov && vp run prepublishOnly && npm pack && attw --pack", | ||||||
| "clean": "rm -rf dist && tsc -b --clean", | ||||||
| "prepublishOnly": "vp run build", | ||||||
| "prepare": "husky", | ||||||
| "prepare": "node -e \"const v = parseInt(process.versions.node, 10); if (v >= 20) require('child_process').execSync('vp config', {stdio: 'inherit'});\"", | ||||||
|
||||||
| "prepare": "node -e \"const v = parseInt(process.versions.node, 10); if (v >= 20) require('child_process').execSync('vp config', {stdio: 'inherit'});\"", | |
| "prepare": "node ./scripts/prepare.mjs", |
Copilot
AI
Mar 10, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overrides still pin vite-plus-core / vite-plus-test to ^0.1.1 while this PR updates the main vite-plus / vitest wrapper deps to ^0.1.4. This will likely force older underlying tooling and can negate the upgrade (or create mismatched behavior). Update these override versions to match the upgraded Vite+ ecosystem (or remove the overrides if they’re no longer needed).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
npx vp mcpcan execute a downloaded package whenvpisn’t available locally, which introduces a supply-chain risk and can make behavior non-deterministic. Prefer executing a known binary (e.g.,command: \"vp\"withargs: [\"mcp\"], or a repo-local path likenode_modules/.bin/vpif that’s the intended source).