React Starter is a web app boilerplate using React, Styled Components (or CSS Modules), Webpack, Babel.
git clone https://github.com/ruanmer/react-starter
cd react-starter
yarn install
yarn release
yarn start
- ES2015 (ES6) and ES2016 (ES7) support
- react-router
- Code Splitting
- styled-components
- CSS Modules
- ESLint
- Jest
- Enzyme
- Webpack Bundle Analyzer
yarn start
Runs your application (from the dist
directory) in the browser (http://localhost:3000). You need to generate a dist
first.
yarn dev
Runs your application in the browser (http://localhost:9000). Auto-compile & auto-reload the server after any file changes within the src
directory.
yarn build
Compiles all files (set NODE.ENV=development
). Output is sent to the dist
directory.
yarn release
Compiles all files (set NODE.ENV=production
). Output is sent to the dist
directory.
yarn release --analyze
Compiles all files and runs bundle analyzer in the browser (http://localhost:8888).
yarn test
yarn test --watch
yarn test --coverage
yarn lint