Boilerplate for creating React Npm packages with ES2015
JavaScript
Latest commit 7345a25 Dec 11, 2016 @juliancwirko fix
Permalink
Failed to load latest commit information.
scripts updates Mar 25, 2016
src init Feb 13, 2016
.babelrc init Feb 13, 2016
.eslintrc init Feb 13, 2016
.gitignore fix Dec 11, 2016
.npmignore init Feb 13, 2016
LICENSE init Feb 13, 2016
README.md Update README.md Mar 4, 2016
index.js init Feb 13, 2016
package.json fix Dec 11, 2016

README.md

Boilerplate for creating React Npm packages with ES2015

The package is based on npm-base package by Kadira which is really great when you want to prepare Npm package. This one is prepared to be used as a starter point for React components which needs to be published on Npm.

It includes linting with ESLint and testing with Mocha, Enzyme and JSDOM.

Also there is of course ES6 transpilation.

Usage

  1. Clone this repo
  2. Inside cloned repo run npm install
  3. If you want to run tests: npm test or npm run testonly or npm run test-watch. You need to write tests in __tests__ folder. You need at least Node 4 on your machine to run tests.
  4. If you want to run linting: npm test or npm run lint. Fix bugs: npm run lint-fix. You can adjust your .eslintrc config file.
  5. If you want to run transpilation to ES5 in dist folder: npm run prepublish (standard npm hook).

Blog post about it:

Also check out

License

MIT