@test-config-1/frontend-utils-create-react-app-ts

1.0.0 • Public • Published

Update

  1. Save the absolute path
  2. Navigate to your home dir
  3. Run create-react-app in temp dir
  4. Navigate to temp dir
  5. Eject app
  6. Delete git repo, node modules, yarn lock, readme, public and src files
  7. Navigate back to your home dir
  8. Move cra-temp to utils
  9. Navigate back to this project's root dir
  10. Delete eslint config from package.json
  11. Disable eslint in all javascript files
  12. 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


  1. Compare with current config scripts
  2. Compare .gitignore patterns
  3. Compare jest config in package.json with jest.config.js in project's root dir
  4. Compare babel config in package.json with .babelrc.js in project's root dir
  5. Compare package.json dependencies
  6. Compare tsconfig.json with that on the project's root dir

Readme

Keywords

none

Package Sidebar

Install

npm i @test-config-1/frontend-utils-create-react-app-ts

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

61 kB

Total Files

15

Last publish

Collaborators

  • lolero