git-toplevel

v1.1.1
Method to find the top level git directory
git-toplevel git root directory git

beautify

esbeautifier 'index.js' 'specs/**/*.js'

beautify-check

esbeautifier -k 'index.js' 'specs/**/*.js'

eslint

eslinter 'index.js' 'specs/**/*.js'

test

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

cover

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

watch

watch-spawn -i -p 'specs/**/*.js' -p 'index.js' npm run cover

lint

npm run beautify && npm run eslint && npm test

check

npm run beautify-check && npm run eslint && npm test

changelog

changelogx -f markdown -o ./changelog.md

do-changelog

npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify

install-hooks

prepush install && changelogx install-hook && precommit install

pre-v

npm run check

post-v

npm run do-changelog && git push --no-verify && git push --tags --no-verify

bump-major

npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v

bump-minor

npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v

bump-patch

npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v
npm i git-toplevel

Metadata

  • MIT
  • Whatever
  • Roy Riojas
  • released 8/11/2015

Downloads

Maintainers