From eafe577a6fbf0563eccdc5ec1a65c87390a71e8c Mon Sep 17 00:00:00 2001 From: cpojer Date: Wed, 22 Apr 2026 15:55:44 +0000 Subject: [PATCH] feat: Ship docs directly at `vite-plus/docs`. (#1440) This PR: * Ships the docs at `vite-plus/docs` * Further reduces the size of what we add to `AGENTS.md` * Removes the skills and mcp features in Vite+, which are unused and we aren't planning on using at this time. If we change our mind, we can bring them back anytime. --- .github/workflows/release.yml | 12 +- packages/cli/.gitignore | 2 +- packages/cli/AGENTS.md | 9 +- packages/cli/build.ts | 52 ++- packages/cli/package.json | 2 +- packages/cli/skills/vite-plus/SKILL.md | 58 --- packages/cli/src/bin.ts | 4 +- packages/cli/src/mcp/bin.ts | 497 ------------------------- packages/cli/src/utils/agent.ts | 155 -------- packages/cli/src/utils/skills.ts | 150 -------- packages/cli/tsdown.config.ts | 1 - 11 files changed, 32 insertions(+), 910 deletions(-) delete mode 100644 packages/cli/skills/vite-plus/SKILL.md delete mode 100644 packages/cli/src/mcp/bin.ts delete mode 100644 packages/cli/src/utils/skills.ts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f78b139d2..c43969d75f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -160,12 +160,12 @@ jobs: path: ./packages/cli/dist if-no-files-found: error - - name: Upload cli skills (docs for agent integration) + - name: Upload cli docs uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }} with: - name: cli-skills - path: ./packages/cli/skills + name: cli-docs + path: ./packages/cli/docs if-no-files-found: error - name: Upload LICENSE files @@ -210,11 +210,11 @@ jobs: pattern: cli merge-multiple: true - - name: Download cli skills + - name: Download cli docs uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: - path: packages/cli/skills - pattern: cli-skills + path: packages/cli/docs + pattern: cli-docs merge-multiple: true - name: Download cli binding diff --git a/packages/cli/.gitignore b/packages/cli/.gitignore index 1ff8aa7bb3..ad5190c5d2 100644 --- a/packages/cli/.gitignore +++ b/packages/cli/.gitignore @@ -1,4 +1,4 @@ /npm /artifacts /LICENSE -/skills/vite-plus/docs +/docs diff --git a/packages/cli/AGENTS.md b/packages/cli/AGENTS.md index 15b47ef93e..ef041769ab 100644 --- a/packages/cli/AGENTS.md +++ b/packages/cli/AGENTS.md @@ -4,17 +4,12 @@ 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 --help` for information about a specific command. -## Common Pitfalls - -- **Running scripts:** Vite+ built-in commands (`vp lint`, `vp dev`, `vp build`, `vp test`, etc.) always run the Vite+ built-in tool. Use `vp run