Skip to content

Instantly share code, notes, and snippets.

@pifantastic
Created December 16, 2013 17:34
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 pifantastic/7990946 to your computer and use it in GitHub Desktop.
Save pifantastic/7990946 to your computer and use it in GitHub Desktop.
Create this file in your project's root dir: `.git/hooks/pre-commit` Make it executable: `chmod +x .git/hooks/pre-commit` You can remove `test` if you just want to `lint` and vice versa.

Create this file in your project's root dir: .git/hooks/pre-commit

Make it executable: chmod +x .git/hooks/pre-commit

You can remove test if you just want to lint and vice versa.

#!/bin/sh
grunt lint test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment