Created
May 24, 2012 20:09
-
-
Save atdt/2783918 to your computer and use it in GitHub Desktop.
simple pre-commit hook to run npm test
This file contains hidden or 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
| #!/usr/bin/env node | |
| (function () { | |
| var npm = require('npm'); | |
| function done( error ) { | |
| process.exit( error === null ? 1 : 0 ); | |
| } | |
| function test() { | |
| this.commands.test( done ); | |
| } | |
| return npm.load( test ); | |
| }()); | |
| /* vim: set ft=javascript: */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment