Awesome
node-babel-boilerplate
Lightweight node + babel6 + tape boilerplate
Features
- babel for ES6/ES7
- compile to ES5 in
/dist
- tape unit testing with zuul runner
- use node-readme
QuickStart
Create a new a folder then
curl -fsSL https://github.com/revolunet/node-babel-boilerplate/archive/master.tar.gz | tar -xz --strip-components=1 node-babel-boilerplate-master
npm i
git init
Wokflow
- edit your code and commit
- run
npm run build
- apply semver with
npm version major|minor|patch
npm run publish
to push to github and npm
Scripts
- npm run readme :
node ./node_modules/.bin/node-readme
- npm run test :
./node_modules/.bin/babel-tape-runner ./spec/**/*.spec.js | ./node_modules/.bin/tap-spec
- npm run zuul :
./node_modules/.bin/zuul --local --open -- spec/**/*.spec.js
- npm run build :
npm run test && npm run readme && ./node_modules/.bin/babel -d ./dist ./src
- npm run publish :
git push && git push --tags && npm publish
Dependencies
Package | Version | Dev |
---|---|---|
babel-cli | ^6.3.17 | ✔ |
babel-eslint | * | ✔ |
babel-preset-es2015 | * | ✔ |
babel-tape-runner | * | ✔ |
babelify | 7.2.0 | ✔ |
eslint | * | ✔ |
eslint-config-airbnb | * | ✔ |
node-readme | ^0.1.8 | ✔ |
tap-spec | ^4.0.2 | ✔ |
tape | ^4.0.0 | ✔ |
zuul | ^3.8.0 | ✔ |
Author
Julien Bouquillon julien@bouquillon.com http://github.com/revolunet