0.0.9 • Published 9 years ago

es6-pkg v0.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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 publish

project 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.es6

test and coverage

Run gulp or npm test, you will see something like:

test

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.

Learn es6

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago