Skip to content

Commit 023a24c

Browse files
committed
fix(hooks): update snap tests after rebase onto renderCliDoc refactor
1 parent 4895a4c commit 023a24c

13 files changed

Lines changed: 139 additions & 118 deletions

File tree

packages/cli/snap-tests-global/command-create-help/snap.txt

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
> vp create -h
22
VITE+ - The Unified Toolchain for the Web
33

4-
USAGE: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]
4+
Usage: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]
55

66
Use any builtin, local or remote template with Vite+.
77

8-
ARGUMENTS:
9-
TEMPLATE Template name. Run `vp create --list` to see available templates.
10-
- Default: vite:monorepo, vite:application, vite:library, vite:generator
11-
- Remote: vite, @tanstack/start, create-next-app,
12-
create-nuxt, github:user/repo, https://github.com/user/template-repo, etc.
13-
- Local: @company/generator-*, ./tools/create-ui-component
14-
15-
OPTIONS:
16-
--directory DIR Target directory for the generated project.
17-
--agent NAME Create an agent instructions file for the specified agent.
18-
--hooks Set up pre-commit hooks (default in non-interactive mode)
19-
--no-hooks Skip pre-commit hooks setup
20-
--no-interactive Run in non-interactive mode
21-
--list List all available templates
22-
-h, --help Show this help message
23-
24-
TEMPLATE OPTIONS:
8+
Arguments:
9+
TEMPLATE Template name. Run `vp create --list` to see available templates.
10+
- Default: vite:monorepo, vite:application, vite:library, vite:generator
11+
- Remote: vite, @tanstack/start, create-next-app,
12+
create-nuxt, github:user/repo, https://github.com/user/template-repo, etc.
13+
- Local: @company/generator-*, ./tools/create-ui-component
14+
15+
Options:
16+
--directory DIR Target directory for the generated project.
17+
--agent NAME Create an agent instructions file for the specified agent.
18+
--hooks Set up pre-commit hooks (default in non-interactive mode)
19+
--no-hooks Skip pre-commit hooks setup
20+
--no-interactive Run in non-interactive mode
21+
--list List all available templates
22+
-h, --help Show this help message
23+
24+
Template Options:
2525
Any arguments after -- are passed directly to the template.
2626

27-
EXAMPLES:
27+
Examples:
2828
# Interactive mode
2929
vp create
3030

@@ -51,30 +51,30 @@ EXAMPLES:
5151
> vp create --help
5252
VITE+ - The Unified Toolchain for the Web
5353

54-
USAGE: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]
54+
Usage: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]
5555

5656
Use any builtin, local or remote template with Vite+.
5757

58-
ARGUMENTS:
59-
TEMPLATE Template name. Run `vp create --list` to see available templates.
60-
- Default: vite:monorepo, vite:application, vite:library, vite:generator
61-
- Remote: vite, @tanstack/start, create-next-app,
62-
create-nuxt, github:user/repo, https://github.com/user/template-repo, etc.
63-
- Local: @company/generator-*, ./tools/create-ui-component
64-
65-
OPTIONS:
66-
--directory DIR Target directory for the generated project.
67-
--agent NAME Create an agent instructions file for the specified agent.
68-
--hooks Set up pre-commit hooks (default in non-interactive mode)
69-
--no-hooks Skip pre-commit hooks setup
70-
--no-interactive Run in non-interactive mode
71-
--list List all available templates
72-
-h, --help Show this help message
73-
74-
TEMPLATE OPTIONS:
58+
Arguments:
59+
TEMPLATE Template name. Run `vp create --list` to see available templates.
60+
- Default: vite:monorepo, vite:application, vite:library, vite:generator
61+
- Remote: vite, @tanstack/start, create-next-app,
62+
create-nuxt, github:user/repo, https://github.com/user/template-repo, etc.
63+
- Local: @company/generator-*, ./tools/create-ui-component
64+
65+
Options:
66+
--directory DIR Target directory for the generated project.
67+
--agent NAME Create an agent instructions file for the specified agent.
68+
--hooks Set up pre-commit hooks (default in non-interactive mode)
69+
--no-hooks Skip pre-commit hooks setup
70+
--no-interactive Run in non-interactive mode
71+
--list List all available templates
72+
-h, --help Show this help message
73+
74+
Template Options:
7575
Any arguments after -- are passed directly to the template.
7676

77-
EXAMPLES:
77+
Examples:
7878
# Interactive mode
7979
vp create
8080

@@ -101,30 +101,30 @@ EXAMPLES:
101101
> vp help create
102102
VITE+ - The Unified Toolchain for the Web
103103

104-
USAGE: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]
104+
Usage: vp create [TEMPLATE] [OPTIONS] [-- TEMPLATE_OPTIONS]
105105

106106
Use any builtin, local or remote template with Vite+.
107107

108-
ARGUMENTS:
109-
TEMPLATE Template name. Run `vp create --list` to see available templates.
110-
- Default: vite:monorepo, vite:application, vite:library, vite:generator
111-
- Remote: vite, @tanstack/start, create-next-app,
112-
create-nuxt, github:user/repo, https://github.com/user/template-repo, etc.
113-
- Local: @company/generator-*, ./tools/create-ui-component
114-
115-
OPTIONS:
116-
--directory DIR Target directory for the generated project.
117-
--agent NAME Create an agent instructions file for the specified agent.
118-
--hooks Set up pre-commit hooks (default in non-interactive mode)
119-
--no-hooks Skip pre-commit hooks setup
120-
--no-interactive Run in non-interactive mode
121-
--list List all available templates
122-
-h, --help Show this help message
123-
124-
TEMPLATE OPTIONS:
108+
Arguments:
109+
TEMPLATE Template name. Run `vp create --list` to see available templates.
110+
- Default: vite:monorepo, vite:application, vite:library, vite:generator
111+
- Remote: vite, @tanstack/start, create-next-app,
112+
create-nuxt, github:user/repo, https://github.com/user/template-repo, etc.
113+
- Local: @company/generator-*, ./tools/create-ui-component
114+
115+
Options:
116+
--directory DIR Target directory for the generated project.
117+
--agent NAME Create an agent instructions file for the specified agent.
118+
--hooks Set up pre-commit hooks (default in non-interactive mode)
119+
--no-hooks Skip pre-commit hooks setup
120+
--no-interactive Run in non-interactive mode
121+
--list List all available templates
122+
-h, --help Show this help message
123+
124+
Template Options:
125125
Any arguments after -- are passed directly to the template.
126126

127-
EXAMPLES:
127+
Examples:
128128
# Interactive mode
129129
vp create
130130

packages/cli/snap-tests-global/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+
▲ Failed to format package.json
17+
1618
◆ Wrote agent instructions to AGENTS.md
1719
1820
└ ✔ Migration completed!
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
> vp migrate --help # show help
22
VITE+ - The Unified Toolchain for the Web
33

4-
USAGE: vp migrate [PATH] [OPTIONS]
4+
Usage: vp migrate [PATH] [OPTIONS]
55

66
Migrate standalone Vite, Vitest, Oxlint, and Oxfmt projects to unified Vite+.
77

8-
ARGUMENTS:
9-
PATH Target directory to migrate (default: current directory)
8+
Arguments:
9+
PATH Target directory to migrate (default: current directory)
1010

11-
OPTIONS:
12-
--agent NAME Write agent instructions file into the project (e.g. chatgpt, claude, opencode).
13-
--no-agent Skip writing agent instructions file
14-
--hooks Set up pre-commit hooks (default in non-interactive mode)
15-
--no-hooks Skip pre-commit hooks setup
16-
--no-interactive Run in non-interactive mode (skip prompts and use defaults)
17-
--non-interactive Alias for --no-interactive
18-
-h, --help Show this help message
11+
Options:
12+
--agent NAME Write agent instructions file into the project (e.g. chatgpt, claude, opencode).
13+
--no-agent Skip writing agent instructions file
14+
--hooks Set up pre-commit hooks (default in non-interactive mode)
15+
--no-hooks Skip pre-commit hooks setup
16+
--no-interactive Run in non-interactive mode (skip prompts and use defaults)
17+
--non-interactive Alias for --no-interactive
18+
-h, --help Show this help message
1919

20-
EXAMPLES:
20+
Examples:
2121
# Migrate current package
2222
vp migrate
2323

@@ -27,4 +27,3 @@ EXAMPLES:
2727
# Non-interactive mode
2828
vp migrate --no-interactive
2929

30-

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

Lines changed: 2 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+
▲ Failed to format package.json
13+
1214
◆ Wrote agent instructions to AGENTS.md
1315
1416
└ ✔ Migration completed!

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

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

packages/cli/snap-tests-global/migration-lintstagedrc-json/snap.txt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
> vp migrate -h # migration help message
22
VITE+ - The Unified Toolchain for the Web
33

4-
USAGE: vp migrate [PATH] [OPTIONS]
4+
Usage: vp migrate [PATH] [OPTIONS]
55

66
Migrate standalone Vite, Vitest, Oxlint, and Oxfmt projects to unified Vite+.
77

8-
ARGUMENTS:
9-
PATH Target directory to migrate (default: current directory)
8+
Arguments:
9+
PATH Target directory to migrate (default: current directory)
1010

11-
OPTIONS:
12-
--agent NAME Write agent instructions file into the project (e.g. chatgpt, claude, opencode).
13-
--no-agent Skip writing agent instructions file
14-
--hooks Set up pre-commit hooks (default in non-interactive mode)
15-
--no-hooks Skip pre-commit hooks setup
16-
--no-interactive Run in non-interactive mode (skip prompts and use defaults)
17-
--non-interactive Alias for --no-interactive
18-
-h, --help Show this help message
11+
Options:
12+
--agent NAME Write agent instructions file into the project (e.g. chatgpt, claude, opencode).
13+
--no-agent Skip writing agent instructions file
14+
--hooks Set up pre-commit hooks (default in non-interactive mode)
15+
--no-hooks Skip pre-commit hooks setup
16+
--no-interactive Run in non-interactive mode (skip prompts and use defaults)
17+
--non-interactive Alias for --no-interactive
18+
-h, --help Show this help message
1919

20-
EXAMPLES:
20+
Examples:
2121
# Migrate current package
2222
vp migrate
2323

@@ -28,7 +28,6 @@ EXAMPLES:
2828
vp migrate --no-interactive
2929

3030

31-
3231
> vp migrate --no-interactive # migration work with lintstagedrc.json
3332
┌ VITE+ - The Unified Toolchain for the Web
3433

packages/cli/snap-tests-global/migration-merge-vite-config-js/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
1010
◆ ✔ Merged .oxlintrc.json into vite.config.js
1111
12+
▲ Failed to format package.json
13+
1214
◆ Wrote agent instructions to AGENTS.md
1315
1416
└ ✔ Migration completed!

packages/cli/snap-tests-global/migration-merge-vite-config-ts/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
1616
● vite.config.ts
1717
18+
▲ Failed to format package.json
19+
1820
◆ Wrote agent instructions to AGENTS.md
1921
2022
└ ✔ Migration completed!

packages/cli/snap-tests-global/migration-monorepo-pnpm-overrides-dependency-selector/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
1010
● vite.config.ts
1111
12+
▲ Failed to format package.json
13+
1214
◆ Wrote agent instructions to AGENTS.md
1315
1416
└ ✔ Migration completed!

packages/cli/snap-tests-global/migration-monorepo-pnpm/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
1818
● vite.config.ts
1919
20+
▲ Failed to format package.json
21+
2022
◆ Wrote agent instructions to AGENTS.md
2123
2224
└ ✔ Migration completed!

0 commit comments

Comments
 (0)