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

The ability to predefine scaffolding parameters from the command line for create-vite and ask for the rest interactively #18511

Open
4 tasks done
cawa-93 opened this issue Oct 29, 2024 · 0 comments

Comments

@cawa-93
Copy link
Contributor

cawa-93 commented Oct 29, 2024

Description

I'm working on a template for applications. The template is built as a mono-repository, in which the UI is an independent package based on vite.

In such a structure, the UI can be any option provided by create-vite tool, but there are still parts that needs to be properly setup.

For example, regardless of the UI stack, its package name must be specific so that other packages in the mono repository can refer to it.

Suggested solution

It would be useful to be able to predefine some parameters on the command line, such as the package name, and ask the user interactively during deployment.

npm create vite -- --set.packageName=@myrepo/name

This command will start interactive mode and ask user about framework and TS etc and skip prompt for package name.

Alternative

No response

Additional context

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant