oskarjakiela / gulp-gulp

MIT License
6 stars 1 forks source link

gulp-gulp NPM version Build Status

A gulp plugin to run other gulps.

Usage

Initially, install gulp-gulp as a development dependency:

npm install --save-dev gulp-gulp

Then, create task using gulp-gulp, which might look similar as below:

'use strict';

var gulp = require('gulp');
var gulpGulp = require('gulp-gulp');

gulp.task('gulp', function() {
  return gulp.src('./**/*/gulpfile.js')
    .pipe(gulpGulp());
});

Finally, fire gulp task:

gulp gulp

If you have following (clean, move, run) sub-gulp tasks you can run like: this

gulp.task('gulp', function() {
  return gulp.src('./**/*/gulpfile.js')
    .pipe(gulpGulp({
      tasks: ['clean', 'move', 'run']
    }));
});

Or directly through shell:

gulp gulp --tasks clean move run

License

MIT License