You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8260793
Browse filesBrowse the repository at this point in the historyBrowse files
# The fake `create-vp-test-generated-setup` CLI writes AGENTS.md and
2
+
# .vscode/settings.json and runs `git init`, so the setup prompts that follow
3
+
# it must react to those files.
4
+
[[case]]
5
+
name = "create_remote_generated_setup"
6
+
vp = "local"
7
+
steps = [
8
+
{ argv = ["vp", "create", "vp-test-generated-setup", "--package-manager", "pnpm", "--", "my-app"], comment = "after the create CLI: no git prompt, a hooks prompt, then append/skip for the generated AGENTS.md", snapshot = false, continue-on-failure = true, interactions = [
9
+
{ "expect-milestone" = "confirm:confirm:yes" },
10
+
{ "write-key" = "enter" },
11
+
{ "expect-milestone" = "select:select:1" },
12
+
{ "write-key" = "up" },
13
+
{ "expect-milestone" = "select:select:0" },
14
+
{ "write-key" = "enter" },
15
+
] },
16
+
{ argv = ["vpt", "grep-file", "my-app/AGENTS.md", "<!--VITE PLUS START-->"], comment = "Vite+ instructions are appended to the generated AGENTS.md", continue-on-failure = true },
17
+
{ argv = ["vpt", "print-file", "my-app/.vscode/settings.json"], comment = "generated editor config is merged without a prompt", continue-on-failure = true },
18
+
{ argv = ["vpt", "stat-file", "my-app/.vite-hooks/pre-commit", "--assert", "file"], comment = "hooks are set up in the repository the create CLI initialized", continue-on-failure = true },
Copy file name to clipboardExpand all lines: docs/guide/create.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ Vite+ ships with these built-in templates:
74
74
75
75
Run `vp create --list` to see the built-in templates and the common shorthand templates Vite+ recognizes.
76
76
77
+
A third-party template runs right after the package manager is chosen. `vp create` asks about agent instructions, editor configs, git, and commit hooks once the template finishes, based on the files it generated: an existing agent instructions file can be appended to or kept, existing editor configs are merged, and an existing git repository is reused.
78
+
77
79
After a third-party template runs, `vp create` migrates the generated project to Vite+. When a standalone project already depends on `vite-plus`, `vp create` skips this migration and keeps the template's tooling choices.
0 commit comments