js-pb
v1.4.0
Published
Boilerplate for developing javascript packages
Downloads
16
Readme
javascript-package-boilerplate
Boilerplate for developing javascript packages.
Usage
npm i -g js-pb
mkdir your_project
cd your_project
npm init
js-pb
npm install
Execute js-pb -h
for more information.
Develope with stable Node.js version
Develope a package for the latest Node.js.
package.json
:
{
"main": "index.js",
"scripts": {
"test": "npm run lint && tap test/*.js",
"cov": "tap --cov test/*.js",
"lint": "eslint *.js 'lib/**/*.js' test/*.js bin/*.js",
"coveralls": "COVERALLS_REPO_TOKEN=REPO_TOKEN npm run cov"
},
"devDependencies": {
"eslint": "^2.1.0",
"tap": "^5.0.0"
}
}
Run tests
Command: npm test
Run tests with tap
.
Code lint
Command: npm run lint
Apply eslint
.
Code coverage
Command: npm run coveralls
Upload code coverage data to coveralls.io. Visit the site for more information.