Created
March 26, 2013 20:36
-
-
Save rsolomo/5248993 to your computer and use it in GitHub Desktop.
Runs 'npm test' on save if a package.json is present in the current directory. I just have this as part of my vimrc.
This file contains 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
if filereadable("package.json") | |
autocmd BufWritePost <buffer> !npm test | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment