Created
September 24, 2014 14:36
-
-
Save zot24/d1123ff3d90b1e3ea115 to your computer and use it in GitHub Desktop.
Run command in a child process with gulp
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
gulp.task "run", (command, cb) -> | |
exec = require('child_process').exec; | |
exec command, (err, stdout, stderr) -> | |
console.log(stdout); | |
console.log(stderr); | |
cb(err); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment