The magic of VitePlus lies in its global command-line tool: vp. While standard Vite focuses on the dev server and build, vp manages your entire lifecycle—from Node.js versions to monorepo task orchestration.
1. Global Installation
Instead of manually installing different versions of Node or package managers, VitePlus can manage them for you.
For macOS/Linux:
curl -fsSL https://vite.plus | bash
For Windows (PowerShell):
irm https://vite.plus/ps1 | iex
2. The "Everything" CLI Table
Once installed, the vp command becomes your single entry point. Here's how it maps to the tools you already know:
| Traditional Command | VitePlus Equivalent | What it Does |
|---|---|---|
npm install |
vp install |
Detects your package manager (pnpm/npm/yarn) and installs |
vite dev |
vp dev |
Starts the lightning-fast ESM dev server |
vitest |
vp test |
Runs tests with zero-config Vitest integration |
eslint . |
vp lint |
Uses Oxlint (100x faster than ESLint) |
prettier --write |
vp fmt |
Uses Oxfmt for near-instant formatting |
npx ... |
vpx ... |
Executes binaries without local installation |
3. Smart Task Running (vp run)
If you're working in a monorepo, you've likely used Turborepo or Nx. VitePlus includes a built-in task runner with intelligent caching:
vp run build
VitePlus analyzes your dependency graph. If you haven't changed code in "Package A," it pulls the build from cache instantly—even across different developer machines on your team.
4. The Unified Configuration
One of the biggest pain points in modern web dev is "Config Fatigue"—having a vite.config.ts, vitest.config.ts, .eslintrc.json, and prettierrc all cluttering your root.
VitePlus collapses these into a single vite.config.ts:
import { defineConfig } from 'vite-plus';
export default defineConfig({
// 1. Standard Vite Build/Dev Settings
server: { port: 3000 },
// 2. Integrated Testing (Vitest)
test: {
environment: 'happy-dom',
coverage: { reporter: ['text', 'json'] }
},
// 3. High-performance Linting (Oxlint)
lint: {
rules: {
"no-unused-vars": "error"
}
},
// 4. Library Bundling (tsdown)
pack: {
entry: './src/index.ts',
format: ['esm', 'cjs']
}
});
5. Migrating an Existing Project
If you already have a standard Vite project, you don't need to start over. VitePlus includes a migration assistant:
vp migrate
This command will:
- Detect your current framework (React, Vue, etc.)
- Update your
package.jsonscripts to usevp - Consolidate your config files into the unified
defineConfigformat
Pro-Tip: The vp check Command
Instead of running lint, then format, then type-check in three separate CI steps, use:
vp check
This runs all static analysis in a single pass. Because it shares the same AST (Abstract Syntax Tree) across tools, it's roughly 2-3x faster than running them individually.
Would you like me to create a specific CI/CD configuration (e.g., GitHub Actions) optimized for VitePlus?
Tags: #javascript #webdev #vite #cli #productivity #programming
Top comments (0)