CtrlK
BlogDocsLog inGet started
Tessl Logo

uinaf/vite-plus

Migrate or align frontend repositories to the stock Vite+ workflow. Use when standardizing package or monorepo repos around `vp`, `voidzero-dev/setup-vp`, `vite-plus/test`, and Vite+ native CI, test, packaging, and hook flows, including Vite+ 0.2.x Vitest-wrapper cleanup.

70

0.92x
Quality

94%

Does it follow best practices?

Impact

46%

0.92x

Average score across 6 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

commands.mdreferences/

Commands

Use this reference before changing command invocations, package-manager usage, or script wiring in a Vite+ repo.

Defaults

  • Treat vp as the tool owner for runtime, package-manager, and frontend-tooling operations.
  • Use vp install, dependency subcommands, or vp pm when Vite+ is the tool owner.
  • Use the built-in vp test, vp lint, vp fmt, and vp check commands.
  • Built-in commands cannot be overridden by same-named scripts. vp build always runs the built-in Vite build; use vp run build (or vpr build) to execute a package.json build script.
  • vpr is a standalone shorthand for vp run. Use whichever spelling the repo already prefers in a given scripts block.
  • Distinguish global upgrades from repo-local upgrades: vp upgrade updates the global CLI, while vp update ... updates project dependencies.

Runtime and Package Manager

  • vp env owns Node.js version management. Use vp env current for verification, vp env use when a repo needs to set or switch Node versions, and vp env doctor when managed Node/npm/package-manager behavior looks inconsistent.
  • vp install owns install/bootstrap. It detects the package manager from the repo; add Corepack or direct package-manager setup only for a proven repo exception.
  • vp rebuild rebuilds native modules after Node.js changes. It is shorthand for vp pm rebuild.

Built-ins vs Scripts

  • Built-in commands such as vp dev, vp build, vp preview, vp test, vp lint, vp fmt, and vp check bypass same-named package.json scripts.
  • Use vp run <script> for repo-defined scripts that Vite+ does not replace directly.
  • If a task needs caching, dependency ordering, or environment/input control, define it in the run.tasks block in vite.config.ts. Tasks defined in vite.config.ts are cached by default; package.json scripts are not.
  • For one-off cache opt-in on a script, use vp run --cache <script> or set run.cache.scripts: true in vite.config.ts.

Check Commands

  • vp check runs format, lint, and type checks together.
  • Use vp check --no-lint for a type-check-only workflow when Vite+ owns the repo.
  • Use vp lint or vp fmt only when the workflow genuinely needs the narrower pass; vp check is the default gate.

Test Commands

  • vp test does a one-shot run by default — unlike raw Vitest, it does not stay in watch mode.
  • Use vp test watch for watch mode and vp test run --coverage for coverage.
  • See references/testing.md for import surface and config rules.

Native Modules and Binaries

  • vpx <pkg[@version]> runs a local or remote binary, downloading on demand.
  • vp exec <bin> runs a binary from the project's node_modules/.bin.
  • vp dlx <pkg> runs a one-off package binary without adding it to dependencies.

Upgrades

  • Use vp upgrade to update the global vp binary on the machine.
  • Use vp update vite-plus to move the local vite-plus package forward in a repo.
  • Keep the package-manager vite alias mapped to the matching npm:@voidzero-dev/vite-plus-core@<version>. vp update vite-plus does not necessarily re-resolve that alias, so update @voidzero-dev/vite-plus-core explicitly when moving releases.
  • For Vite+ 0.2.x and newer, remove the old @voidzero-dev/vite-plus-test alias/wrapper instead of updating it. vp test uses upstream Vitest through vite-plus; direct vitest and @vitest/* packages are only for repos that use upstream Vitest APIs, coverage/UI packages, or browser providers directly.
  • Use vp outdated to confirm whether any Vite+ packages remain behind the intended release.

Validation Path

  • Prefer the standard migration validation sequence: vp env current, vp install, vp check, vp test, then vp build or vp pack as appropriate.

SKILL.md

tile.json