Skip to content

Instantly share code, notes, and snippets.

@eddieajau
Created May 25, 2015 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddieajau/072a0f4e1561b39fe179 to your computer and use it in GitHub Desktop.
Save eddieajau/072a0f4e1561b39fe179 to your computer and use it in GitHub Desktop.
NPM Package Scripts
{
"devDependencies": {
"app-root-path": "^1.0.0",
"jshint": "^2.7.0",
"mocha": "^2.2.5",
"supertest": "^1.0.1"
},
"scripts": {
"check": "npm outdated",
"lint": "node_modules/.bin/jshint lib/ test/",
"lint:checkstyle": "npm run lint -- --reporter checkstyle > checkstyle.xml",
"cover": "istanbul cover node_modules/.bin/_mocha -- -R spec test",
"test": "npm run test:unit",
"test:unit": "node_modules/.bin/mocha test --no-colors",
"test:xunit": "npm run test:unit -- --reporter xunit",
"patch": "npm version patch && npm publish && git push --follow-tags"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment