Simple react starter with the following config:
- React, ReactDOM
- Webpack 4
- Babel with es2015 and react presets
- Bootstrap (css only, loaded from a cdn in
index.html
) - work with
.js
or.jsx
files - main
application.scss
stylesheet is imported inindex.js
as a module to enjoy hot reloading
To start the local Webpack Dev Server (usually on port 8080
):
yarn start
To lint all JavaScript files in the src
folder:
yarn lint
To build and deploy your app to gh-pages
branch on the GitHub repo:
yarn deploy
cd ~/code/<github_username>
git clone git@github.com:renaudaf/My-React-Boilerplate.git project-name
cd project-name
rm -rf .git
git init
git add .
git commit -m "initial commit with boilerplate"
hub create
git push origin master
yarn install
code .