Last Updated: February 25, 2016
·
1.993K
· hemanth

Load all grunt tasks in one shot

Good way:

npm install --save-dev matchdep

 require('matchdep'). 
filterDev('grunt-*'). 
forEach(grunt.loadNpmTasks); 

Better way

npm install --save-dev load-grunt-tasks

require('load-grunt-tasks')(grunt); //load all grunt tasks matching the `grunt-*` pattern