@@ -25,8 +25,7 @@ var Gulp = module.exports = Runtime.createClass({
2525 }
2626
2727 if ( this . repl ) {
28- this . repl = require ( 'gulp-repl' ) ( this ) ;
29- util . log ( 'REPL enabled' ) ;
28+ this . repl = Gulp . repl . start ( this ) ;
3029 }
3130
3231 // adds the CLI for this instance and runs it for this
@@ -35,9 +34,16 @@ var Gulp = module.exports = Runtime.createClass({
3534} ) ;
3635
3736/**
38- * gulp.task
37+ * static methods
3938**/
4039
40+ Gulp . repl = require ( 'gulp-repl' ) ;
41+
42+ /**
43+ * instance methods
44+ **/
45+
46+ // gulp.task
4147Gulp . prototype . task = function ( name , deps , handle ) {
4248 handle = util . type ( handle || deps || name ) . function || '' ;
4349 deps = util . type ( deps ) . array || util . type ( name ) . array ;
@@ -65,10 +71,7 @@ Gulp.prototype.task = function (name, deps, handle) {
6571 return this ;
6672} ;
6773
68- /**
69- * gulp.watch
70- **/
71-
74+ // gulp.watch
7275Gulp . prototype . watch = function ( glob , opt , fn ) {
7376 var tasks = util . type ( opt ) . array ;
7477 var handle = util . type ( fn || opt ) . function ;
@@ -84,10 +87,7 @@ Gulp.prototype.watch = function (glob, opt, fn) {
8487 return globWatch ( glob , opt , fn ) ;
8588} ;
8689
87- /**
88- * gulp.tree
89- **/
90-
90+ // gulp.tree
9191Gulp . prototype . tree = function ( options ) {
9292 options = options || { } ;
9393
@@ -151,9 +151,8 @@ Gulp.prototype.tree = function (options) {
151151 return tree ;
152152} ;
153153
154- /**
155- * maps all the arguments of gulp.stack to functions
156- **/
154+ // override of runtime.reduceStack
155+ // maps all the arguments for the gulp.stack to functions
157156
158157Gulp . prototype . reduceStack = function ( stack , site ) {
159158 var task = typeof site === 'function'
@@ -189,7 +188,7 @@ Gulp.prototype.reduceStack = function (stack, site) {
189188
190189
191190/**
192- * logging
191+ * tasks logging
193192**/
194193
195194Gulp . prototype . onHandleStart = function ( task , stack ) {
0 commit comments