Skip to content

Instantly share code, notes, and snippets.

@hapticdata
Created October 15, 2013 22:25
Show Gist options
  • Save hapticdata/6999642 to your computer and use it in GitHub Desktop.
Save hapticdata/6999642 to your computer and use it in GitHub Desktop.
Read all of the grunt tasks out of your devDependencies and load them
//load all of the Grunt NPM Tasks out of the package.json
Object.keys(require('./package.json').devDependencies).forEach(function(dep){
if( dep.match(/grunt-/) ){
grunt.loadNpmTasks(dep);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment