Last active
August 29, 2015 14:04
-
-
Save bassettsj/87f8f7346af537c104cf to your computer and use it in GitHub Desktop.
Execute Grunt Compile on commit
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 | |
| echo | |
| if [ -a .commit ] | |
| then | |
| rm .commit | |
| grunt --base=$HOME/kalabox/www/greenbiz/sites/all/themes/greenbiz --gruntfile=$HOME/kalabox/www/greenbiz/sites/all/themes/greenbiz/Gruntfile.coffee | |
| git add sites/all/themes/greenbiz/css | |
| git add sites/all/themes/greenbiz/js/dist | |
| git commit --amend -C HEAD --no-verify | |
| fi | |
| exit |
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 | |
| echo | |
| touch .commit | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment