diff --git a/bin/gulp b/bin/gulp.js similarity index 100% rename from bin/gulp rename to bin/gulp.js diff --git a/index.js b/index.js index 32e307823..8c543e56d 100644 --- a/index.js +++ b/index.js @@ -30,12 +30,18 @@ Gulp.prototype.log = function(){ Gulp.prototype.taskQueue = Gulp.prototype.seq; Gulp.prototype.task = Gulp.prototype.add; -Gulp.prototype.run = Gulp.prototype.start; +Gulp.prototype.run = function(tasks){ + if (!tasks || !tasks.length) { + tasks = ['default']; + } + this.start(tasks); +}; + Gulp.prototype.src = require('./lib/createInputStream'); Gulp.prototype.dest = require('./lib/createOutputStream'); Gulp.prototype.watch = require('./lib/watchFile'); -Gulp.prototype.createGlobStream = require('glob-stream').create; +Gulp.prototype.createGlobStream = require('glob-stream').create; Gulp.prototype.formatFile = require('./lib/formatFile'); Gulp.prototype.bufferFile = require('./lib/bufferFile'); Gulp.prototype.streamFile = require('./lib/streamFile'); diff --git a/package.json b/package.json index add83e431..cb27d46d9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name":"gulp", "description":"The streaming build system", - "version":"2.0.1", + "version":"2.1.0", "homepage":"http://github.com/wearefractal/gulp", "repository":"git://github.com/wearefractal/gulp.git", "author":"Fractal (http://wearefractal.com/)", @@ -9,7 +9,7 @@ "preferGlobal":true, "bin":{ - "gulp":"./bin/gulp" + "gulp":"./bin/gulp.js" }, "dependencies":{ "event-stream":"3.0.16", @@ -26,10 +26,11 @@ "mocha":"*", "should":"*", "rimraf":"*", - "q": "*" + "q": "*", + "jshint": "*" }, "scripts":{ - "test":"mocha" + "test":"mocha && jshint" }, "engines":{ "node":">= 0.8"