cra-to-parcel
v0.0.6
Published
This script migrates a non-ejected Create React App to Parcel.
Readme
cra-to-parcel
This script migrates a non-ejected Create React App to Parcel.
npx cra-to-parcelWhat is migrated?
For full details and manual instructions, see the Parcel website. In summary:
react-scriptsis replaced withparcelin dependencies and package.jsonscripts- Jest config is ejected, and the necessary dependencies are installed
public/index.htmlis updated to use Parcel syntax, and add explicit<script src="../src/index.js">tag- SVG react component imports are migrated to Parcel syntax
- A
.postcssrcis created if@import-normalizeor Tailwind is detected - A
babel.config.jsonis created if Babel macros (e.g. GraphQL imports) are detected - A
"lint"script is added to run eslint .gitignoreis updated to add the Parcel cache and dist directories
