node package manager

babel-react-rollup-starter

A simple boilerplate for web apps with React, Babel, and Rollup.

babel-react-rollup-starter Build Status npm version Standard - JavaScript Style Guide

A simple boilerplate for web apps with React, Babel, and Rollup.

Installation

npm install --global babel-react-rollup-starter

Usage

Development

Running the following command will open your default browser to html/index-dev.html. Thanks to Browsersync, any modifications inside src trigger a browser refresh:

npm start

To generate a development bundle:

npm run build:dev

Production

  1. First run the following command:
npm run build
  1. Open html/index.html in your browser.

The Rollup production configuration file changes NODE_ENV to production and minifies the code with UglifyJS.

Linting

The code quality is checked by the JavaScript Standard Style.

License

Released under the MIT license by Davy Duperron.