Makes working with modulized Gulpfiles in subdirectories a breeze
Last updated 5 years ago by ssboisen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-modulize 
SYNC missed versions from official npm registry.


Modulizing the streaming build system

What it does

gulp-modulize helps you work with modulized gulpfiles by importing tasks from gulpfiles located in subdirectories into a common gulpfile typically located in the root of your project directory.

This allow you to have seperate gulpfiles defined for each submodule in your application and at the same time have a common project-wide gulpfile that helps you run all tasks across modules. It does this in such a way that each of the submodules can have its own regular gulp workflow by defining new tasks that are specific for that submodule and running those tasks with gulp <taskname>.


gulpModulize(gulp[, glob])

Runs gulp-modulize using the passed instance of gulp


Type: Gulp

An instance of the Gulp constructor-function as retrieved using require('gulp')


Type: String

Optional base-glob to use when searching for gulpfiles. Default value is */. The base-glob-path is joined with **/gulpfile.*.

Sample gulpfile.js

var gulp = require('gulp');
var gulpModulize = require('gulp-modulize');
var tasks = gulpModulize(gulp);

gulp.task('default', tasks);

Sample my_awesome_module/gulpfile.js

var gulp = require('gulp'),
var gutil = require('gulp-util');

gulp.task('test', function () {
	gutil.log('running tests');

Want to contribute?

Anyone can help make this project better - pull-requests are very much welcome!

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (6)
Dev Dependencies (0)
Dependents (2)

Copyright 2014 - 2016 © |