grunt-hub
Advanced tools
Comparing version 0.3.5 to 0.3.6
{ | ||
"name": "grunt-hub", | ||
"description": "A Grunt task to watch and run tasks on multiple Grunt projects", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"homepage": "https://github.com/shama/grunt-hub", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -120,2 +120,3 @@ # grunt-hub | ||
* 0.3.6 Propagate exit codes. Thanks @wachunga! | ||
* 0.3.5 Update for latest grunt. Thanks @akinofftz! | ||
@@ -122,0 +123,0 @@ * 0.3.4 Allow watch task to be renamed. |
@@ -26,2 +26,3 @@ /* | ||
var done = this.async(); | ||
var errorCount = 0; | ||
var tasks = this.data.tasks || 'default'; | ||
@@ -53,3 +54,6 @@ // Get process.argv options without grunt.cli.tasks to pass to child processes | ||
}, function(err, res, code) { | ||
if (code !== 0) { grunt.log.error(res.stderr); } | ||
if (code !== 0) { | ||
errorCount++; | ||
grunt.log.error(res.stderr); | ||
} | ||
grunt.log.writeln(res.stdout).writeln(''); | ||
@@ -59,3 +63,6 @@ n(); | ||
}, next); | ||
}, done); | ||
}, function () { | ||
var withoutErrors = (errorCount === 0); | ||
done(withoutErrors); | ||
}); | ||
@@ -62,0 +69,0 @@ }); |
17832
317
139