Last Updated: February 25, 2016
·
883
· zaim

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);
  }
});