cra-to-vite-quick-migrator
v1.1.4
Published
Migrate Create React App project to Vite
Downloads
14
Readme
cra-to-vite-quick-migrator
Effortlessly migrate your Create React App (CRA) project to Vite project.
Installation
To install the cra-to-vite-quick-migrator
package globally, run:
npm install -g cra-to-vite-quick-migrator@latest
Usage
To migrate a CRA project to Vite, navigate to your project directory and run:
cra-to-vite-quick-migrator ./
OR
cra-to-vite-quick-migrator
Then you will be prompted to enter the path to your CRA project. By default, the tool will use the current directory (./
).
Features
- Converts
.js
files to.jsx
and.ts
files to.tsx
- Updates dependencies to use Vite
- Adjusts import statements for Vite compatibility
- Removes environment variable prefixes and updates calls
- Modifies HTML templates for Vite
- Creates a
vite.config.js
configuration file - Installs all necessary dependencies with Yarn
Advantages
- Speed: The migration process typically takes between 1 to 3 minutes, depending on the size of your project.
- Efficiency: Automates conversion and configuration, reducing manual effort and potential errors.
- Simplicity: Easy to use with straightforward commands.
Contributing
Contributions are welcome! If you have suggestions, bug reports, or improvements, please submit an issue or a pull request on GitHub.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Keywords
- Vite
- Create React App
- Migration
- React
- Frontend Development
- JavaScript
- TypeScript
- Webpack
- Build Tools