This repo is a fork of react-pages-boilerplate.
- Webpack@4 as module bundler
- Babel for js and jsx transpiling
- react-hot-loader@4 for extremely fast hot updates
- Eslint for linting
- Prettier for automated code formatting
- Jest with Enzyme for testing
- css modules, less, autoprefixer for styles processing
- Storybook for painless UI development and testing
- Clone
git clone https://github.com/rtivital/react-pages-boilerplate
or download this repository. - (Optional) Run
nvm use
. This will ensure that you are running the supported version of Node.js. You can nvm installation instructions here. - Install dependencies:
yarn
- Run the project:
npm start
settings.js file includes all important settings that should be used to setup deployments to gh-pages:
- title – Base application title
- cname – Adds CNAME file that allows to use custom domain names with gh-pages
- repoPath – username.github.io/repoPath for react router to recognize gh-pages paths
- prerenderRoutes – routes that should be prerendered before deploy
npm start
– starts development server with webpack-dev-servernpm test
– runs tests with Jestnpm run build
– builds project to productionnpm run deploy
– builds and deploys project to Github pagesnpm run lint
– lints JavaScript filesnpm run prettier
– format js and jsx files with prettier