1.1.2 • Published 9 years ago
git-pull-hook v1.1.2
git-pull-hook
For npm(node) modules directories
gitp ARGUMENTS_FOR_GIT_PULL = npm run prepull && git pull ARGUMENTS_FOR_GIT_PULL && npm run postpull
gitp ARGUMENTS_FOR_GIT_PULL will execute your defined npm scripts prepull before executing git pull ARGUMENTS_FOR_GIT_PULL, then npm run postpull. If one of the steps fails, it will stop.
To install:
npm install -g git-pull-hookTo Use:
# Go to your git repository (via cd)
gitp ARGUMENTS_FOR_GIT_PULL
# Wait for prompts
# When it has finished, it will prompt you "done!"