📃 Boilerplate for npm/node module. Write with ES6 and ES7 - have compatibility node > 5
.
This boilerplate is for people who want write code using all ES6 and ES7 features ( and stage-3 ) but also want/need backwards compatibility with old node versions.
npm run pretest
- Hook for test. Run the lint before the test runnpm run clean
- Remove./lib
directorynpm test
- Run tests. Tests can be written with ES7npm test:watch
- You can even re-run tests on file changes!npm run lint
- Run Lint of ESLint with airbnb-config rulesnpm run test:examples
- We recommend writing examples on pure JS for better understanding module usage.npm run build
- Create the ES5 on ./libof the ES7 of
./src`npm run watch:babel
- watch changes of files on./src
to compile them on real timenpm run postinstall
- Hook to compile after the module is installed
Just clone this repo and remove .git
folder.