Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

demodurgesh

raodurgesh1MIT1.0.0

Boilerplate for creating npm packages using es6 and react

react, es6, npm, hmr, hot, babel, webpack, boilerplate, starter, publish

readme

react-npm-es6-boilerplate

A boilerplate for creating react npm packages.

  • Publish to npm with minimal setup.
  • Create examples using es6, jsx, and sass.
  • Develop with webpack + hot module reloading.
  • Build your examples (ready for production).

Installation

$ git clone https://github.com/robertgonzales/react-npm-es6-boilerplate.git app-name
$ cd app-name
$ npm install

White label it

  • Update name, description, author, repository in package.json
  • Update app title in src/index.html

Develop

Build

  • Build once (ready for Production)
    • $ npm run build
    • Open build/index.html through the local webserver

Publish

  • Transpile src files into ES5 in dist folder:
    • $ npm run prepublish
    • or just $ npm publish

Notes