Skip to content

Commit 1fcfe6e

Browse files
committed
feat: Add an --agent flag and interactive prompt.
1 parent 120fbef commit 1fcfe6e

29 files changed

Lines changed: 392 additions & 77 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Vite+
22

3-
The Unified Toolchain for the Web
3+
**The Unified Toolchain for the Web**
4+
_dev, build, test, lint, format, monorepo caching & more in a single dependency, built for scale, speed, and sanity_

packages/global/AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Using Vite+, the Unified Toolchain for the Web
2+
3+
*TODO*

packages/global/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"files": [
1313
"bin",
1414
"dist",
15+
"AGENTS.md",
1516
"templates",
1617
"rules"
1718
],

packages/global/snap-tests/migration-auto-create-vite-config/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
1414
◆ ✅ Merged .oxfmtrc.json into vite.config.ts
1515
16+
◆ Wrote agent instructions to AGENTS.md
17+
1618
└ ✨ Migration completed!
1719

1820

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
> vite migration --help # show help
2+
Usage: vite migration [PATH] [OPTIONS]
3+
4+
Migrate standalone vite, vitest, oxlint, and oxfmt to unified vite-plus.
5+
6+
Arguments:
7+
PATH Target directory to migrate (default: current directory)
8+
9+
Options:
10+
--agent NAME Write agent instructions file into the project (e.g. chatgpt, claude, opencode).
11+
--no-interactive Run in non-interactive mode (skip prompts and use defaults)
12+
-h, --help Show this help message
13+
14+
Examples:
15+
# Migrate current package
16+
vite migration
17+
18+
# Migrate specific directory
19+
vite migration my-app
20+
21+
# Non-interactive mode
22+
vite migration --no-interactive
23+
24+
Aliases: migrate
25+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"commands": ["vite migration --help # show help"]
3+
}

packages/global/snap-tests/migration-from-tsdown-json-config/snap.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
1010
◆ ✅ Merged tsdown.config.json into vite.config.ts
1111
12+
◆ Wrote agent instructions to AGENTS.md
13+
1214
└ ✨ Migration completed!
1315

1416

@@ -61,6 +63,8 @@ export default defineConfig({
6163
6264
● pnpm@<semver> installed
6365
66+
● Skipped writing AGENTS.md (already exists)
67+
6468
└ ✨ Migration completed!
6569

6670

packages/global/snap-tests/migration-from-tsdown/snap.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
1818
● tsdown.config.ts
1919
20+
◆ Wrote agent instructions to AGENTS.md
21+
2022
└ ✨ Migration completed!
2123

2224

@@ -70,6 +72,8 @@ export default defineConfig({
7072
7173
● 📦 Please manually merge tsdown.config.ts into vite.config.ts, see https://viteplus.dev/migration/#tsdown
7274
75+
● Skipped writing AGENTS.md (already exists)
76+
7377
└ ✨ Migration completed!
7478

7579

packages/global/snap-tests/migration-from-vitest-config/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
1212
● vitest.config.ts
1313
14+
◆ Wrote agent instructions to AGENTS.md
15+
1416
└ ✨ Migration completed!
1517

1618

packages/global/snap-tests/migration-from-vitest-files/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
1212
● test/hello.ts
1313
14+
◆ Wrote agent instructions to AGENTS.md
15+
1416
└ ✨ Migration completed!
1517

1618

0 commit comments

Comments
 (0)