vite
vite copied to clipboard
create-vite: add CLI argument help
Description
npx create-vite --help should show help for command line usage
Suggested solution
something like ...
Usage: create-vite [OPTION]... [DIRECTORY]
Create a new JavaScript project based on Vite.
With no arguments, start an interactive command line dialog.
Options:
-t, --template NAME use this template
Available templates:
...
Alternative
read the source of create-vite to find the CLI arguments
const argv = minimist<{
t?: string
template?: string
}>(process.argv.slice(2), { string: ['_'] })
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Hello, i did some changes, what do you think?
im blinded by the colors ; )
what will you do in the future, when you run out of colors?
i would rather group the templates into lines
vanilla vanilla-ts
vue vue-ts custom-create-vue custom-nuxt
react react-ts ...
preact ...
lit ...
interesting, thanks for the point. I just added the colors thinking that when we create a new project the templates are shown with colors
like that?
yepp. except i would put the -ts versions second
(also, please stop posting screenshots of text...)
I prefer the version where 'ts' comes first; I'll await feedback in the PR.