forked from gulpjs/gulp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (26 loc) · 808 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*jshint node:true */
"use strict";
var util = require('util');
var Orchestrator = require('orchestrator');
var gutil = require('gulp-util');
function Gulp(){
Orchestrator.call(this);
this.env = gutil.env;
}
util.inherits(Gulp, Orchestrator);
Gulp.prototype.taskQueue = Gulp.prototype.seq;
Gulp.prototype.task = Gulp.prototype.add;
Gulp.prototype.run = function(){
var tasks = Array.prototype.slice.call(arguments);
// impose our opinion of "default" tasks onto orchestrator
if (!tasks.length) {
tasks = ['default'];
}
this.start.apply(this, tasks);
};
Gulp.prototype.src = require('./lib/createInputStream');
Gulp.prototype.dest = require('./lib/createOutputStream');
Gulp.prototype.watch = require('./lib/watch');
var gulp = new Gulp();
gulp.Gulp = Gulp;
module.exports = gulp;