zot24
9/24/2014 - 2:36 PM

Run command in a child process with gulp

Run command in a child process with gulp

gulp.task "run", (command, cb) ->
  exec = require('child_process').exec;

  exec command, (err, stdout, stderr) ->
    console.log(stdout);
    console.log(stderr);
    cb(err);