Last active
November 26, 2015 00:06
-
-
Save designfrontier/bb3e2beebffdc99fcc24 to your computer and use it in GitHub Desktop.
post-commit hook for clearing node_modules
This file contains hidden or 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 | |
rm -rf node_modules/ | |
npm install |
chmod +x post-checkout
What do you think about
npm prune
npm install
Or do you think nuking from orbit is best?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Be sure and chmod it and then stick it in the
.git/hooks
folder then you are good to go