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
Written by hemanth
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Related Tags
#nodejs
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#