Created
May 1, 2014 03:04
-
-
Save ttaylorr/d36a7c0919a84b71ad97 to your computer and use it in GitHub Desktop.
Run `npm install` on post commit if changes are present in package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
changed=`git diff-tree --no-commit-id --name-only -r HEAD` | |
if [`grep 'package.json' <<< "$changed"` ] ; then | |
`npm install` | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cc @mdo