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

feat(create-vite): allow overwrite in command line #15808

Merged
merged 2 commits into from
Feb 8, 2024
Merged

feat(create-vite): allow overwrite in command line #15808

merged 2 commits into from
Feb 8, 2024

Conversation

raelgc
Copy link
Contributor

@raelgc raelgc commented Feb 5, 2024

Description

When creating a new vite project in a folder with existing files, allow the "overwrite" prompt to be passed as a command line argument to avoid the prompt.

Example:

npm create vite@latest . -- --overwrite "ignore" --template react-ts

Additional context

To be able to pass the command line param and skip the prompt will allow to automate some deploys.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

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

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

Copy link

stackblitz bot commented Feb 5, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@raelgc raelgc changed the title Allow create-vite overwrite in command line feat: Allow create-vite overwrite in command line Feb 5, 2024
@raelgc raelgc changed the title feat: Allow create-vite overwrite in command line feat: allow create-vite overwrite in command line Feb 5, 2024
bluwy
bluwy previously approved these changes Feb 6, 2024
@bluwy bluwy changed the title feat: allow create-vite overwrite in command line feat(create-vite): allow overwrite in command line Feb 6, 2024
@patak-dev patak-dev merged commit 1882c73 into vitejs:main Feb 8, 2024
10 of 11 checks passed
@raelgc raelgc deleted the allow-create-vite-overwrite-in-command-line branch February 8, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants