grunt-parallel
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "grunt-parallel", | ||
"description": "Run tasks or commands in child processes.", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"homepage": "https://github.com/iammerrick/grunt-parallel", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -54,6 +54,7 @@ /* | ||
} | ||
// Default to grunt it a task isn't specified | ||
// Normalize tasks config. | ||
this.data.tasks = this.data.tasks.map(function(task) { | ||
// Default to grunt it a command isn't specified | ||
if ( ! task.cmd ) { | ||
@@ -63,4 +64,9 @@ task.grunt = true; | ||
// Pipe to the parent stdout when streaming. | ||
if ( task.stream || ( task.stream === undefined && options.stream ) ) { | ||
task.opts = task.opts || {}; | ||
task.opts.stdio = 'inherit'; | ||
} | ||
return task; | ||
}); | ||
@@ -77,13 +83,4 @@ | ||
if (options.stream === true) { | ||
this.data.tasks = this.data.tasks.map(function(task) { | ||
task.opts = task.opts || {}; | ||
task.opts.stdio = 'inherit'; | ||
return task; | ||
}); | ||
} | ||
Q.all(this.data.tasks.map(spawn)).then(done, done.bind(this, false)); | ||
}); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8242
123