Open History to see the last commit
1<!--VITE PLUS START-->
2
3# Using Vite+, the Unified Toolchain for the Web
4
5This 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
7Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/.
8
9## Built-in Commands vs Scripts
10
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
13## Running Scripts
14
15Run TypeScript and JavaScript files with `vpx <file>`, for example `vpx ./scripts/seed.ts --dry-run`. It handles enums, decorators, JSX, and tsconfig `paths`, so do not add `tsx` or `ts-node` to run scripts. `vpx --watch <file>` reruns the file when a file it uses changes, in place of `tsx watch`. `vp node <file>` runs plain Node.js.
16
17## Tool Versions
18
19Run `vp toolchain` to show versions and relationships in the active Vite+
20release. Add a tool name to select part of the graph. For example, run
21`vp toolchain vite`. Use `--global` to ignore the local `vite-plus` package. Use
22`vp why <package>` to show the package-manager dependency graph.
23
24## Review Checklist
25
26- [ ] Run `vp install` after pulling remote changes and before getting started.
27- [ ] Run `vp check` and `vp test` to format, lint, type check and test changes.
28- [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run <script>`.
29- [ ] If setup, runtime, or package-manager behavior looks wrong, run `vp env doctor` and include its output when asking for help.
30
31<!--VITE PLUS END-->