Load all grunt tasks without additional modules
Pure JS way to load all available grunt tasks. No need for matchdep or any other requires. More verbose but with less dependencies.
Object.keys(require('./package').devDependencies).forEach(function (m) {
if (m.substr(0, 6) === 'grunt-') {
grunt.loadNpmTasks(m);
}
});Written by Zaim Bakar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Grunt
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#