grunt-parallel
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "grunt-parallel", | ||
"description": "Run tasks or commands in child processes.", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/iammerrick/grunt-parallel", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -6,3 +6,3 @@ # grunt-parallel | ||
## Getting Started | ||
Install this grunt plugin next to your project's [Gruntfile.js gruntfile][getting_started] with: `npm install grunt-parallel` | ||
Install this grunt plugin next to your project's [Gruntfile.js gruntfile][getting_started] with: `npm install grunt-parallel --save-dev` | ||
@@ -40,3 +40,3 @@ Then add this line to your project's `Gruntfile.js` gruntfile: | ||
One might target the task using `grunt parallel:assets` | ||
One might target the task using `grunt parallel:assets`. This would run compass, requirejs, and a custom shell script at the same time, each logging to your console when they are done. | ||
@@ -43,0 +43,0 @@ ## License |
@@ -17,3 +17,6 @@ /* | ||
if (error || code !== 0) { | ||
grunt.log.error(result, error.message); | ||
grunt.log.error(result.stderr || result.stdout); | ||
if (error.message) { | ||
grunt.log(error.message); | ||
} | ||
return deferred.reject(); | ||
@@ -30,21 +33,5 @@ } | ||
// Please see the grunt documentation for more information regarding task and | ||
// helper creation: https://github.com/gruntjs/grunt/blob/master/docs/toc.md | ||
// ========================================================================== | ||
// TASKS | ||
// ========================================================================== | ||
grunt.registerMultiTask('parallel', 'Run sub-tasks in parallel.', function() { | ||
var done = this.async(); | ||
var tasks = []; | ||
this.data.forEach(function(task) { | ||
tasks.push(spawn(task)); | ||
}); | ||
Q.all(tasks).then(function() { | ||
done(); | ||
}); | ||
Q.all(this.data.map(spawn)).then(this.async()); | ||
}); | ||
}; |
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
4486
57