Skip to content

feat(create): ask setup questions after the create-xxx CLI runs - #3435

Merged
fengmk2 merged 3 commits into
voidzero-dev:mainfrom
liangmiQwQ:feat/create-prompt-after-remote-template
Nov 13, 2026
Merged

fengmk2 merged 3 commits into
voidzero-dev:mainfrom
liangmiQwQ:feat/create-prompt-after-remote-template

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #3424, so the diff includes its changes until it is merged.

The current vp create <create-xxx template> asks about agent instructions, editor configs, git, and commit hooks before the create-xxx CLI runs. These prompts come before the template's own prompts, and they cannot know what the template is going to generate.

This PR moves these prompts after the create-xxx CLI finishes and makes them check the generated project. The package manager choice stays where it is, because it decides which package manager launches the create-xxx CLI.

  • Agents: asks which agent instruction files to create. If the template already generated one, asks whether to append to it or skip.
  • Editors: asks which editor configs to write. If the template already generated editor configs, they are merged without further questions.
  • Git: asks only when the template did not initialize a repository. It is still skipped when adding a package to an existing monorepo.
  • Hooks: asks whether to set up commit hooks, also when the repository came from the template.

Built-in and bundled @org templates keep asking up front. Non-interactive runs resolve the same choices as before.

🤖 Generated with Claude Code

@liangmiQwQ
liangmiQwQ force-pushed the feat/create-prompt-after-remote-template branch from 3425721 to 8260793 Compare November 11, 2026 21:55
@liangmiQwQ
liangmiQwQ marked this pull request as ready for review November 12, 2026 13:27
@liangmiQwQ
liangmiQwQ requested a review from fengmk2 November 12, 2026 13:28
@liangmiQwQ
liangmiQwQ force-pushed the feat/create-prompt-after-remote-template branch from 44ad070 to 9f763e8 Compare November 12, 2026 13:29
@fengmk2 fengmk2 self-assigned this Nov 12, 2026
@liangmiQwQ
liangmiQwQ force-pushed the feat/create-prompt-after-remote-template branch from 9f763e8 to 8bb1779 Compare November 12, 2026 22:07
@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests labels Nov 13, 2026
@fengmk2
fengmk2 merged commit ee1e771 into voidzero-dev:main Nov 13, 2026
120 checks passed
@liangmiQwQ
liangmiQwQ deleted the feat/create-prompt-after-remote-template branch November 13, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants