`gulp.task()`
var spawn = require('child_process').spawn;
var gulp = require('gulp');
gulp.task('mytask', function(done) {
var proc = spawn('my_command');
proc.on('exit', function(code, signal) {
if (code !== null && code !== 0) {
done('error'); // null
} else {
done(); //
}
});
});
> if ... not null and not undefined, the orchestration will stop
`done`