0.0.9 • Published 10 years ago
es6-pkg v0.0.9
es6-pkg
Boilerplate for developing node modules using es6
Usage
npm i -g es6-pkg
mkdir your_project
cd your_project
# create `package.json`
npm init
# create files
es6pkg
npm install
# test the sample code
gulp
# coding
# check coverage
npm test
# commit your code and bump version
gulp build
cd build
npm publishproject directory
Put all your scripts in lib/, and tests in test/.
If there is a bin directory,
you should modify gulpfile.babel.js.
⌘ tree .
.
├── gulpfile.babel.js
├── index.js
├── lib
│ └── main.es6
├── package.json
└── test
└── main.es6test and coverage
Run gulp or npm test, you will see something like:

Test
Refer to tape to learn how to write tests.
The default reporter is tap-spec.
NOTE: Tests should depend upon the same tape with gulp-tape,
otherwise the reporter may fail to receive the output.
Coverage statistics is done by istanbul and isparta.
Lint
Refer to eslint to learn how to confiure.