Skip to content

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

Merged
patak-cat merged 2 commits into
vitejs:mainfrom
raelgc:allow-create-vite-overwrite-in-command-line
Feb 8, 2024
Merged

feat(create-vite): allow overwrite in command line#15808
patak-cat merged 2 commits into
vitejs:mainfrom
raelgc:allow-create-vite-overwrite-in-command-line

Conversation

@raelgc
Copy link
Copy Markdown
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.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

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-cat patak-cat merged commit 1882c73 into vitejs:main Feb 8, 2024
@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.

3 participants