Created
October 22, 2012 11:27
-
-
Save dignifiedquire/3931112 to your computer and use it in GitHub Desktop.
Test for exit code
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
var spawn = require('child_process').spawn; | |
var build = spawn('grunt', ['build']); | |
build.on('exit', function(code){ | |
console.log('Exit: ' + code); | |
}); | |
var test = spawn('grunt', ['test']); | |
test.on('exit', function(code){ | |
console.log('Exit: ' + code); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment