vite-plus-conventions
vite+ unified TypeScript toolchain conventions: the vp CLI for package/node management, oxlint/oxfmt, type-aware linting, vitest, rolldown/tsdown bundling, task caching, and migration. Load when confi
SKILL.mdinternal/builtins/bindings/vite-plus/skills/vite-plus-conventions/SKILL.md
GitHub- Use vite+ as the unified TypeScript toolchain. It wraps best-in-class tools behind a single CLI. Configure your entire toolchain in
vite.config.tsby importingdefineConfigfromvite-plus. - Package manager: vite+ auto-detects from
package.jsonengine field or lockfile (pnpm-lock.yaml,yarn.lock,package-lock.json,bun.lock). Fallback ispnpm. Runvp install,vp add <pkg-name>orvp remove <pkg-name>for managing package dependencies. - Node manager: vite+ manages Node.js versions — replaces
nvm/fnm. Runvp env onthenvp env install <node-version>to install Node.js runtime. Runvp env pinto pin version. - Linter:
oxlintvia vite+ — a fast Rust-powered alternative to legacy JavaScript linters. Runvp lintfor linting with TypeScript-aware rules. - Formatter:
oxfmtvia vite+ — a fast alternative to legacy JavaScript formatters. Runvp fmtfor consistent code formatting. - Type checker:
oxlintwith type-aware linting via vite+ — replacestsc --noEmitfor lint-time type checks. Configure it by enabling bothlint.options.typeAwareandlint.options.typeCheckinvite.config.ts. Runvp lintfor type-aware linting. - Testing:
vitestvia vite+ — runvp testfor fast Vite-native testing with HMR, coverage, and snapshot support. Import fromvite-plus/testinstead ofvitestwhen writing tests. - Bundler:
rolldown(Rust-powered Rollup replacement) for Vite apps,tsdownfor library builds. Runvp buildfor Vite apps orvp packfor libraries. - Task runner: vite+ supports task caching for build pipelines. Define tasks in
vite.config.tsorpackage.jsonscripts and benefit from incremental builds by usingvp run <task-name>. - CI integration: use
vp lint,vp fmt,vp test --coverage,vp build/vp packin CI pipelines. - Migrate from existing tools: vite+ is a drop-in replacement. Run
vp migrateto migrate your entire toolchain to vite+.