1 |
|
2 |
|
3 | 'use strict';
|
4 |
|
5 | var util = require('util');
|
6 | var Orchestrator = require('orchestrator');
|
7 | var gutil = require('gulp-util');
|
8 |
|
9 | function Gulp(){
|
10 | Orchestrator.call(this);
|
11 | this.env = gutil.env;
|
12 | }
|
13 | util.inherits(Gulp, Orchestrator);
|
14 |
|
15 | Gulp.prototype.taskQueue = Gulp.prototype.seq;
|
16 | Gulp.prototype.task = Gulp.prototype.add;
|
17 | Gulp.prototype.run = function(){
|
18 |
|
19 | var tasks = arguments.length ? arguments : ['default'];
|
20 |
|
21 | this.start.apply(this, tasks, function(err) {
|
22 | if (err) { process.exit(1); }
|
23 | });
|
24 | };
|
25 |
|
26 | Gulp.prototype.src = require('./lib/createInputStream');
|
27 | Gulp.prototype.dest = require('./lib/createOutputStream');
|
28 | Gulp.prototype.watch = require('glob-watcher');
|
29 |
|
30 |
|
31 | Gulp.prototype.Gulp = Gulp;
|
32 |
|
33 | var inst = new Gulp();
|
34 |
|
35 | module.exports = inst;
|