vite icon indicating copy to clipboard operation
vite copied to clipboard

feat(create-vite): add support for custom init commands (`create-vue`, Nuxt, and SvelteKit)

Open sodatea opened this issue 1 year ago • 0 comments

Description

Fixes https://github.com/vitejs/vite/issues/9317

The outcome:

https://user-images.githubusercontent.com/3277634/181470625-8da0b23a-4a80-475b-b30e-855abd1ce18f.mp4

I've also published a package called create-soda-test on npm, so that you can test it with package managers (e.g. pnpm create soda-test) to see if calling npm create inside npm create really works.

Additional context

I also changed the prompts a little bit, but they are in separate commits, so if this PR gets accepted, please don't squash the commits.


What is the purpose of this pull request?

  • [ ] Bug fix
  • [x] New Feature
  • [ ] Documentation update
  • [ ] Other

Before submitting the PR, please make sure you do the following

  • [x] Read the Contributing Guidelines.
  • [x] Read the Pull Request Guidelines and follow the Commit Convention.
  • [x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • [ ] Ideally, include relevant tests that fail without this PR but pass with it.

sodatea avatar Jul 28 '22 09:07 sodatea