Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ jobs:
)

install-e2e-test:
name: Local CLI `vite install` E2E test
name: Local CLI `vp install` E2E test
needs:
- download-previous-rolldown-binaries
runs-on: ubuntu-latest
Expand Down Expand Up @@ -543,11 +543,11 @@ jobs:
pnpm bootstrap-cli:ci
echo "$HOME/.vite-plus/bin" >> $GITHUB_PATH

- name: Run local CLI `vite install`
- name: Run local CLI `vp install`
run: |
export PATH=$PWD/node_modules/.bin:$PATH
vp -h
# Test vite install on various repositories with different package managers
# Test vp install on various repositories with different package managers
repos=(
# pnpm workspace
"pnpm/pnpm:pnpm"
Expand All @@ -562,7 +562,7 @@ jobs:

for repo_info in "${repos[@]}"; do
IFS=':' read -r repo dir_name <<< "$repo_info"
echo "Testing vite install on $repo…"
echo "Testing vp install on $repo…"
# remove the directory if it exists
if [ -d "$RUNNER_TEMP/$dir_name" ]; then
rm -rf "$RUNNER_TEMP/$dir_name"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-standalone-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:

vp --version
vp --help
# test new command
# test create command
vp create vite --no-interactive --no-agent -- hello --no-interactive -t vanilla
cd hello && vp run build && vp --version

Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
vp --version
vp --help
# $env:VITE_LOG = "trace"
# test new command
# test create command
vp create vite --no-interactive --no-agent -- hello --no-interactive -t vanilla
cd hello && vp run build && vp --version

Expand Down Expand Up @@ -335,7 +335,7 @@ jobs:
dir "%USERPROFILE%\.vite-plus"
dir "%USERPROFILE%\.vite-plus\bin"

REM test new command
REM test create command
vp create vite --no-interactive --no-agent -- hello-cmd --no-interactive -t vanilla
cd hello-cmd && vp run build && vp --version

Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:

vp --version
vp --help
# test new command
# test create command
vp create vite --no-interactive --no-agent -- hello-bash --no-interactive -t vanilla
cd hello-bash && vp run build && vp --version

Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A monorepo task runner (like nx/turbo) with intelligent caching and dependency r
```bash
# Built-in commands
vp build # Run Vite build (dedicated command)
vp test # Run Vite test (dedicated command)
vp test # Run Vitest (dedicated command)
vp lint # Run oxlint (dedicated command)

# Run tasks across packages (explicit mode)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ irm https://staging.viteplus.dev/install.ps1 | iex
- **fmt** - Format code
- **lib** - Build library
- **migrate** - Migrate an existing project to Vite+
- **new** - Create a new monorepo package (in-project) or a new project (global)
- **create** - Create a new monorepo package (in-project) or a new project (global)
- **run** - Run tasks from `package.json` scripts

### Package Manager Commands
Expand Down
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/components/home/FeatureDevBuild.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import devTerminal from '@local-assets/terminal-features/dev.svg';
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide"
>Vite dev &amp; build</span
>Vite+ dev &amp; build</span
>
<h4 class="text-white">Blazingly fast builds</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Expand Down Expand Up @@ -53,7 +53,7 @@ import devTerminal from '@local-assets/terminal-features/dev.svg';
<div
class="block px-5 py-6 relative bg-slate rounded-tl rounded-bl outline-1 outline-offset-[2px] outline-white/20"
>
<img loading="lazy" :src="devTerminal" alt="vite build terminal command" />
<img loading="lazy" :src="devTerminal" alt="vp build terminal command" />
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/home/FeatureFormat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import formatTerminal from '@local-assets/terminal-features/format.svg';
<section id="feature-format" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite fmt</span>
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite+ fmt</span>
<h4 class="text-white">Enforce consistent code styles</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Format repos at native speed
Expand Down
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/components/home/FeatureLint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import lintTerminal from '@local-assets/terminal-features/lint.svg';
<section id="feature-lint" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite lint</span>
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite+ lint</span>
<h4 class="text-white">Catch bugs before they make it to production</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Analyze JavaScript code to find and fix problems
Expand Down Expand Up @@ -36,7 +36,7 @@ import lintTerminal from '@local-assets/terminal-features/lint.svg';
<div
class="block pl-5 py-6 relative bg-slate rounded-tl rounded-bl outline-1 outline-offset-[2px] outline-white/20"
>
<img loading="lazy" :src="lintTerminal" alt="vite lint terminal command" />
<img loading="lazy" :src="lintTerminal" alt="vp lint terminal command" />
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/home/FeatureRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import runTerminal from '@local-assets/terminal-features/run.svg';
<section id="feature-run" class="wrapper border-t grid md:grid-cols-2 md:divide-x divide-nickel">
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite run</span>
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite+ run</span>
<h4 class="text-white">Monorepo Caching that Just Works</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Built-in Turborepo / Nx alternative
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/home/FeatureTest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import testTerminal from '@local-assets/terminal-features/test.svg';
<section id="feature-test" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite test</span>
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite+ test</span>
<h4 class="text-white">Testing made simple</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Feature rich test runner that automatically reuses the same resolve and transform config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import viteBackground from '@local-assets/backgrounds/vite.jpg';
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide"
>Vite dev &amp; build</span
>Vite+ dev &amp; build</span
>
<h4 class="text-white">Blazingly fast builds</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Expand Down Expand Up @@ -49,7 +49,7 @@ import viteBackground from '@local-assets/backgrounds/vite.jpg';
<div
class="block px-5 py-6 relative bg-slate rounded-tl outline-1 outline-offset-[2px] outline-white/20"
>
<img loading="lazy" :src="devTerminal" alt="vite build terminal command" />
<img loading="lazy" :src="devTerminal" alt="vp build terminal command" />
</div>
</div>
<div class="p-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import oxcBackground from '@local-assets/backgrounds/oxc.jpg';
<section id="feature-format" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite fmt</span>
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite+ fmt</span>
<h4 class="text-white">Enforce consistent code styles</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Format repos at native speed
Expand All @@ -36,7 +36,7 @@ import oxcBackground from '@local-assets/backgrounds/oxc.jpg';
<div
class="block pl-5 py-6 relative bg-slate rounded-tl outline-1 outline-offset-[2px] outline-white/20"
>
<img loading="lazy" :src="formatTerminal" alt="vite build terminal command" />
<img loading="lazy" :src="formatTerminal" alt="vp build terminal command" />
</div>
</div>
<div class="p-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import oxcBackground from '@local-assets/backgrounds/oxc.jpg';
<section id="feature-lint" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite lint</span>
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite+ lint</span>
<h4 class="text-white">Catch bugs before they make it to production</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
Analyze JavaScript code to find and fix problems
Expand Down Expand Up @@ -40,7 +40,7 @@ import oxcBackground from '@local-assets/backgrounds/oxc.jpg';
<div
class="block pl-5 py-6 relative bg-slate rounded-tl outline-1 outline-offset-[2px] outline-white/20"
>
<img loading="lazy" :src="lintTerminal" alt="vite build terminal command" />
<img loading="lazy" :src="lintTerminal" alt="vp build terminal command" />
</div>
</div>
<div class="p-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import vitestBackground from '@local-assets/backgrounds/vitest.jpg';
<section id="feature-test" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
<div class="px-5 py-6 md:p-10 flex flex-col justify-between gap-15">
<div class="flex flex-col gap-5">
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite test</span>
<span class="text-grey text-xs font-mono uppercase tracking-wide">Vite+ test</span>
<h4 class="text-white">Run tests without duplicate configurations</h4>
<p class="text-white/70 text-base max-w-[25rem] text-pretty">
A test runner that uses the same app configurations and shares a common transformation
Expand All @@ -37,7 +37,7 @@ import vitestBackground from '@local-assets/backgrounds/vitest.jpg';
<div
class="block px-5 py-6 relative bg-slate rounded-tl outline-1 outline-offset-[2px] outline-white/20"
>
<img loading="lazy" :src="testTerminal" alt="vite build terminal command" />
<img loading="lazy" :src="testTerminal" alt="vp build terminal command" />
</div>
</div>
<div class="p-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ onMounted(() => {
delay: 1,
});
typewriter
.typeString(`<span>$ vite new vite-plus-demo --template react-ts</span>`)
.typeString(`<span>$ vp create vite-plus-demo --template react-ts</span>`)
.pauseFor(500)
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
.pasteString(`<span class="text-aqua">◇ Scaffolding project in ~/vite-plus-demo</span>`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ onMounted(() => {
delay: 1,
});
typewriter
.typeString(`<span>$ vite dev</span>`)
.typeString(`<span>$ vp dev</span>`)
.pauseFor(200)
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
.pasteString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ onMounted(() => {
delay: 1,
});
typewriter
.typeString(`<span>$ vite lint</span>`)
.typeString(`<span>$ vp lint</span>`)
.pauseFor(200)
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
.pasteString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ onMounted(() => {
delay: 1,
});
typewriter
.typeString(`<span>$ vite fmt</span>`)
.typeString(`<span>$ vp fmt</span>`)
.pauseFor(200)
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
.pasteString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ onMounted(() => {
delay: 1,
});
typewriter
.typeString(`<span>$ vite test</span>`)
.typeString(`<span>$ vp test</span>`)
.pauseFor(200)
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
.pasteString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ onMounted(() => {
delay: 1,
});
typewriter
.typeString(`<span>$ vite build</span>`)
.typeString(`<span>$ vp build</span>`)
.pauseFor(200)
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
.pasteString(
Expand Down
10 changes: 5 additions & 5 deletions docs/vite/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ If you use lint-staged, update your configuration to use Vite+ commands:

```json
{
"*.{js,ts,tsx}": ["vite lint --fix", "vite fmt"]
"*.{js,ts,tsx}": ["vp check --fix"]
}
```

Expand All @@ -378,23 +378,23 @@ After migration completes:
1. **Verify the build**:

```bash
vite run build
vp run build
```

::: tip
`vite run` automatically installs dependencies if needed, so you don't need to run `pnpm install` / `npm install` / `yarn install` manually.
`vp run` automatically installs dependencies if needed, so you don't need to run `pnpm install` / `npm install` / `yarn install` manually.
:::

2. **Run tests**:

```bash
vite test
vp test
```

3. **Check linting**:

```bash
vite lint
vp lint
```

4. **Review `vite.config.ts`**: Ensure all merged configurations are correct.
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This project is using Vite+, a modern toolchain built on top of Vite, Rolldown,
- fmt - Format code
- lib - Build library
- migrate - Migrate an existing project to Vite+
- new - Create a new monorepo package (in-project) or a new project (global)
- create - Create a new monorepo package (in-project) or a new project (global)
- exec - Execute a command in workspace packages (supports `--filter`, `-r`, `--parallel`)
- run - Run tasks from `package.json` scripts

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ irm https://staging.viteplus.dev/install.ps1 | iex
- **fmt** - Format code
- **lib** - Build library
- **migrate** - Migrate an existing project to Vite+
- **new** - Create a new monorepo package (in-project) or a new project (global)
- **create** - Create a new monorepo package (in-project) or a new project (global)
- **run** - Run tasks from `package.json` scripts

### Package Manager Commands
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> # vite pm config set vite-plus-pm-config-test-key test-value --location project # npm set will check valid keys start from npm v9, see https://github.com/npm/cli/issues/5852
> # vp pm config set vite-plus-pm-config-test-key test-value --location project # npm set will check valid keys start from npm v9, see https://github.com/npm/cli/issues/5852
> vp pm config get vite-plus-pm-config-test-key --location project # should get config value from project scope
test-value

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
"# vite pm config set vite-plus-pm-config-test-key test-value --location project # npm set will check valid keys start from npm v9, see https://github.com/npm/cli/issues/5852",
"# vp pm config set vite-plus-pm-config-test-key test-value --location project # npm set will check valid keys start from npm v9, see https://github.com/npm/cli/issues/5852",
"vp pm config get vite-plus-pm-config-test-key --location project # should get config value from project scope",
"vp pm config delete vite-plus-pm-config-test-key --location project && cat .npmrc # should delete config key from project scope"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
# Start vite pack watch in background, redirect output to file, and save PID
vite pack --watch > .watch-output.log 2>&1 &
# Start vp pack watch in background, redirect output to file, and save PID
vp pack --watch > .watch-output.log 2>&1 &
echo $! > .pid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> vite install --help | head -n 20 # print help message
> vp install --help | head -n 20 # print help message
Version <semver> (compiled to binary; bundled Node.js v<semver>)
Usage: pnpm install [options]

Expand All @@ -19,7 +19,7 @@ Options:
in the store were mutated
--aggregate-output Aggregate output from child processes

> vite install --prod # https://pnpm.io/cli/install#--prod--p
> vp install --prod # https://pnpm.io/cli/install#--prod--p
Packages: +<variable>
+<repeat>
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Expand All @@ -35,7 +35,7 @@ Done in <variable>ms using pnpm v<semver>
> ls node_modules
tslib

> vite install --prod # install again hit cache
> vp install --prod # install again hit cache
✓ cache hit, replaying
Packages: +<variable>
+<repeat>
Expand All @@ -47,4 +47,3 @@ dependencies:
devDependencies: skipped

Done in <variable>ms using pnpm v<semver>

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"ignoredPlatforms": ["win32"],
"commands": [
"vite install --help | head -n 20 # print help message",
"vite install --prod # https://pnpm.io/cli/install#--prod--p",
"vp install --help | head -n 20 # print help message",
"vp install --prod # https://pnpm.io/cli/install#--prod--p",
"ls node_modules",
"vite install --prod # install again hit cache"
"vp install --prod # install again hit cache"
]
}
2 changes: 1 addition & 1 deletion packages/cli/snap-tests-todo/test-panicked-fix/snap.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> vite lint --help | head -n 20 # print help message and no panicked
> vp lint --help | head -n 20 # print help message and no panicked
Usage: [-c=<./.oxlintrc.json>] [PATH]...

Basic Configuration
Expand Down
Loading
Loading