Skip to content

Instantly share code, notes, and snippets.

@tjmcewan
Created May 15, 2011 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjmcewan/973035 to your computer and use it in GitHub Desktop.
Save tjmcewan/973035 to your computer and use it in GitHub Desktop.
compass/jammit pre-commit hook
#!/bin/sh
echo "Compiling styles with Compass..."
compass compile --quiet --trace
git add public/stylesheets
echo "Packaging assets with Jammit..."
jammit
git add public/assets
@tjmcewan
Copy link
Author

save the above as .git/hooks/pre-commit then...

chmod +x .git/hooks/pre-commit

credit to http://railswizard.org

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