Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use custom templates #2155

Closed
jonwalstedt opened this issue Feb 21, 2021 · 2 comments
Closed

Ability to use custom templates #2155

jonwalstedt opened this issue Feb 21, 2021 · 2 comments

Comments

@jonwalstedt
Copy link

I would like to be able to create custom templates to use with create-app.

Describe the solution you'd like
I would like to be able to run something like yarn create @vitejs/app my-new-app --template ./my-local-template or yarn create @vitejs/app my-new-app --template @my-co/my-custom-vitejs-kickstarter-template to generate the base for my application.

Currently there is a hardcoded check in https://github.com/vitejs/vite/blob/main/packages/create-app/index.js isValidTemplate = availableTemplates.includes(template) that only allows for templates in the availableTemplates array.

@patak-dev
Copy link
Member

I think you could use https://github.com/Rich-Harris/degit to quickly start your project copying a repository.

@yyx990803
Copy link
Member

Just use degit. @vitejs/app is only for official templates.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants