Boilerplate to rapidly build react apps using my favorite setup. It was bootstrapped with Create React App and customized with extra dependencies.
- react 17 (from CRA)
- testing-library (from CRA)
- Styled-components
- husky + lint-staged
- react-router-dom
- nprogress
- axios
- prettier
- jest-axe + @types/jest-axe,
- webpack-bundle-analyzer + progress-bar-webpack-plugin
Runners:
yarn clean
-> removes /node_modulesyarn analyze
-> creates an interactive treemap visualization of the bundles' content
Pre-commit:
- uses husky & lint-staged to run prettier on save
Browslerlist:
- "not ie 11"
yarn start
-> runs the app in the development modeyarn test
-> launches the test runner in the interactive watch modeyarn build
-> builds the app for production to thebuild
folder It correctly bundles React in production mode and optimizes the build for the best performance
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See deployment for more information.