Skip to content

Instantly share code, notes, and snippets.

@bulkismaslom
Last active August 29, 2015 14:10
Show Gist options
  • Save bulkismaslom/ec266110f6fcc48c1198 to your computer and use it in GitHub Desktop.
Save bulkismaslom/ec266110f6fcc48c1198 to your computer and use it in GitHub Desktop.
// 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);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment