Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.