Skip to content

Commit d3be9bb

Browse files
author
Contra
committed
fix task running + logging
1 parent dbe7e47 commit d3be9bb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ util.inherits(Gulp, Orchestrator);
2222
Gulp.prototype.log = function(){
2323
if (this.env.silent) return;
2424
var sig = '['+chalk.green('gulp')+']';
25-
var args = [].slice.call(arguments);
25+
var args = Array.prototype.slice.call(arguments);
2626
args.unshift(sig);
2727
console.log.apply(console, args);
2828
return this;
2929
};
3030

3131
Gulp.prototype.taskQueue = Gulp.prototype.seq;
3232
Gulp.prototype.task = Gulp.prototype.add;
33-
Gulp.prototype.run = function(tasks){
34-
if (!tasks || !tasks.length) {
33+
Gulp.prototype.run = function(){
34+
var tasks = Array.prototype.slice.call(arguments);
35+
36+
if (!tasks.length) {
3537
tasks = ['default'];
3638
}
37-
this.start(tasks);
39+
this.start.apply(this, tasks);
3840
};
3941

4042
Gulp.prototype.src = require('./lib/createInputStream');

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name":"gulp",
33
"description":"The streaming build system",
4-
"version":"2.1.0",
4+
"version":"2.2.0",
55
"homepage":"http://github.com/wearefractal/gulp",
66
"repository":"git://github.com/wearefractal/gulp.git",
77
"author":"Fractal <[email protected]> (http://wearefractal.com/)",

0 commit comments

Comments
 (0)