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.
Also there is of course ES6 transpilation.
- Clone this repo
- Inside cloned repo run
npm install && rm -rf .git && git initand update
package.jsonwith your package name.
- If you want to run tests:
npm run testonlyor
npm run test-watch. You need to write tests in
__tests__folder. You need at least Node 4 on your machine to run tests.
- If you want to run linting:
npm run lint. Fix bugs:
npm run lint-fix. You can adjust your
- If you want to run transpilation to ES5 in
npm run prepublish(standard npm hook).
CSS and preprocessors
For more information check out this thread: #5
Blog post about it:
Also check out