Skip to content

Instantly share code, notes, and snippets.

// gulpfile.js
// load all gulp tasks using matchdep
// matching the `gulp*` pattern to include gulp itself
require('matchdep')
.filterDev('gulp*') //by default it loads the nearest package.json
.forEach(function(module) {
global[module.replace(/^gulp-/, '')] = require(module);
});