From 1e0982d5600ab81b165584e9bfeffe68db538641 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 17 May 2026 12:46:43 +0800 Subject: [PATCH 1/5] chore: migrate to Vite+ Run `vp migrate` to replace husky + lint-staged + oxfmt with Vite+. Git hooks now live in `.vite-hooks/`, formatting/lint/staged config moves to `vite.config.ts`, and the single dev dep becomes `vite-plus`. Co-Authored-By: Claude Opus 4.7 (1M context) --- .husky/pre-commit | 1 - .vite-hooks/pre-commit | 1 + AGENTS.md | 15 + package.json | 12 +- pnpm-lock.yaml | 1398 +++++++++++++++++++++++++++++++++------- pnpm-workspace.yaml | 14 + vite.config.ts | 9 + 7 files changed, 1191 insertions(+), 259 deletions(-) delete mode 100644 .husky/pre-commit create mode 100755 .vite-hooks/pre-commit create mode 100644 AGENTS.md create mode 100644 pnpm-workspace.yaml create mode 100644 vite.config.ts diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index cb2c84d..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -pnpm lint-staged diff --git a/.vite-hooks/pre-commit b/.vite-hooks/pre-commit new file mode 100755 index 0000000..85fb65b --- /dev/null +++ b/.vite-hooks/pre-commit @@ -0,0 +1 @@ +vp staged diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..ef04176 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,15 @@ + + +# 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, 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. + +Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/. + +## Review Checklist + +- [ ] Run `vp install` after pulling remote changes and before getting started. +- [ ] Run `vp check` and `vp test` to format, lint, type check and test changes. +- [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run