Skip to content

Instantly share code, notes, and snippets.

@matt-bailey
Created August 1, 2014 08:32
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 matt-bailey/838e5d80752378b390d2 to your computer and use it in GitHub Desktop.
Save matt-bailey/838e5d80752378b390d2 to your computer and use it in GitHub Desktop.
Example front-end workflow pre-commit Git Hook
#/usr/bin/env bash
# git hook to run a command before `git commit`
# Run the build process `grunt`
echo "--- Verify frontend build passes before we commit..."
echo "--- If the build fails fix the issue and try committing again"
(cd theme; grunt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment