Skip to content

Instantly share code, notes, and snippets.

@Stanton
Created October 22, 2014 09:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stanton/dd6f1002bdc1d8782ce5 to your computer and use it in GitHub Desktop.
Save Stanton/dd6f1002bdc1d8782ce5 to your computer and use it in GitHub Desktop.
Grunt post-merge Git hook
PATH="/usr/local/bin:/usr/local/share/npm/bin:$PATH"
#!/bin/sh
grunt sass:dev
@Stanton
Copy link
Author

Stanton commented Oct 22, 2014

Runs the grunt sass:dev task any time you pull from the remote repository to ensure you compile any changes that may come down.

Handy to make sure any other developers you are working with have this also have it installed, we have it as part of our repository and it's installed with:

cp hooks/post-merge .git/hooks/post-merge; chmod -R u+x .git/hooks/post-merge;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment