Big thanks to KleoPetroff/react-webpack-boilerplate
The boilerplate includes:
- React 16.8.0
- ECMAScript 6 and JSX support
- React Router v4
- Component testing using Enzyme, Jest and redux-saga-test-plan
- Code Coverage
- Webpack v4 and Webpack Dev Server (v3.1.14) with Scope Hoisting enabled
- Hot Module Replacement using react-hot-loader
- ES6 linting with continuous linting on file change
- SASS support
- Separate CSS stylesheets generation
- Automatic HTML generation
- Production Config
- Custom Babel 7 Preset with Decorators, Class Properties, Rest/Spread operator support
- Export Separate Vendor Files
- Redux
- Redux-Saga
- DotEnv
- Flow
Make sure you have the latest Stable or LTS version of Node.js installed.
git clone https://github.com/JonathanGuo/React-Redux-Saga-Boilerplate.git
- Run
npm install
oryarn install
- Start the dev server using
npm start
- Open http://localhost:8080
npm start
- start the dev servernpm clean
- delete the dist foldernpm run production
- create a production ready build indist
foldernpm run lint
- execute an eslint checknpm test
- run all testsnpm run test:watch
- run all tests in watch modenpm run coverage
- generate code coverage report in thecoverage
folder
The project is using the Jest Code Coverage tool. The reports are generated by running npm run coverage
. All configurations are located in package.json
, inside the jest
object.
Run npm run production
. The production-ready code will be located under dist
folder.
React-Redux-Saga-Boilerplate is available under MIT.