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

Package detail

yssa-react-lib

aasedittlau10MIT1.0.8

A react test

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