1.0.0 • Published 5 years ago
@test-config-1/frontend-utils-create-react-app-ts v1.0.0
Update
- Save the absolute path
- Navigate to your home dir
- Run create-react-app in temp dir
- Navigate to temp dir
- Eject app
- Delete git repo, node modules, yarn lock, readme, public and src files
- Navigate back to your home dir
- Move
cra-temp
to utils - Navigate back to this project's root dir
- Delete eslint config from package.json
- Disable eslint in all javascript files
- Run prettier with the fix flag
project_root=$(pwd)
cd ~
npx create-react-app ~/cra-temp --typescript
cd cra-temp
yarn eject
rm -rf .git/ node_modules/ yarn.lock README.md src/
cd ..
mv cra-temp "$project_root/packages/utils"
cd $project_root
sed -i '/eslintConfig/,+2d' packages/utils/cra-temp/package.json
sed -i '1s&^&/* eslint-disable */\n&' packages/utils/cra-temp/**/*.js
yarn prettier:fix
- Compare with current config scripts
- Compare .gitignore patterns
- Compare jest config in package.json with
jest.config.js
in project's root dir - Compare babel config in package.json with
.babelrc.js
in project's root dir - Compare package.json dependencies
- Compare tsconfig.json with that on the project's root dir
1.0.0
5 years ago