Boilerplate with all essentials for a production level app.
create-react-app
is what most of us use to create an app with no build configuration.
This boilerplate has all the main dependencies used by react community for a production level app.
This boilerplate features all the latest tools and practices in the industry.
- ⚛ React — 16.7.0-alpha.0 with Hooks
- ♻ Redux — State Management
- 🛠 Babel — ES6 syntax, Airbnb & React/Recommended config
- 🚀 Webpack — Hot Reloading, Code Splitting, Optimized Build
- 💅 CSS — Styled Components
- ✅ Tests — Jest, React Testing Library
- 💖 Lint — ESlint
- Clone the repo
- Run
npm install
in the root directory - Use following commands:
npm start
- start the dev servernpm run build
- create a production ready build indist
foldernpm run lint
- execute an eslint checknpm run lint:fix
- execute an eslint and fix the errorsnpm test
- run all testsnpm run test:watch
- run all tests in watch modenpm run test:cover
- coverage mode
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (439 KiB).
This can impact web performance.
Assets:
vendors~main.js (1.55 MiB)
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/