-
Clears up the excess files and unnecessary code generated by the
create-react-app
scaffold
NB: Only run this script in a newly initialized app project as it Deletes and Rewrites certain files
If already initialized fresh CRA app
npx clear-react-app
Else
npx create-react-app my-app
cd my-app
npx clear-react-app
Rewrites
(removes unnessary stuff and replaces the app name and descriptions with the actual app's name)
- ./public/manifest.json
- ./README.md
- ./public/index.html
- ./src/index.js
- ./src/App.js
Deletes
- ./src/App.test.js
- ./src/index.css
- ./src/App.css
- ./src/logo.svg
- ./src/reportWebVitals.js
- ./src/setupTests.js
- ./public/favicon.ico
- ./public/logo192.png
- ./public/logo512.png