prepush

v2.0.2
Yet another prepush script that will run tasks defined in a config file
prepush hooks git hooks enforce git workflow

beautify

esbeautifier lib/**/*.js bin/**/*.js hook/**/*.js

beautify-check

esbeautifier -k lib/**/*.js bin/**/*.js hook/**/*.js

eslint

eslint --format 'node_modules/eslint-friendly-formatter' lib/ bin/ hook/ -c './configs/eslint.json'

test

mocha-runner 'specs/**/*.js'

cover

istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary

watch

npm run cover && watch-spawn -p 'specs/**/*.js' -p 'lib/**/*.js' -p 'hook/**/*.js' -p 'bin/**/*.js' npm run cover

check

npm run beautify-check && npm run eslint

lint

npm run beautify && npm run eslint

prepush

npm run check && npm test

changelog

changelogx -f markdown -o ./changelog.md

Metadata

  • MIT
  • Whatever
  • Roy Riojas
  • released 3/21/2015

Downloads

Maintainers