Skip to content

renaudaf/My-React-Boilerplate

Repository files navigation

react-boilerplate

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 in index.js as a module to enjoy hot reloading

Scripts

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

Download boilerplate to new project

cd ~/code/<github_username>

git clone git@github.com:renaudaf/My-React-Boilerplate.git project-name

cd project-name

Destroy existing boilerplate git history, and start a new one

rm -rf .git

git init

git add .

git commit -m "initial commit with boilerplate"

Create a GitHub repo, and push!

hub create

git push origin master

Install the dependencies listed in the package.json file with:

yarn install

Time to open Sublime Text and code.

code .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published