Created
October 15, 2013 22:25
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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