js-pb

1.4.0 • Public • Published

javascript-package-boilerplate

version status dependencies devDependencies

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.

Related

Package Sidebar

Install

npm i js-pb

Weekly Downloads

1

Version

1.4.0

License

MIT

Last publish

Collaborators

  • zoubin