Load All Grunt Tasks
In your Gruntfile.js you can load all grunt- modules with one command and save yourself the trouble of writing grunt.loadNpmTasks for every grunt plugin, which can results in dozens of similar lines that need to be maintained in sync between your Gruntfile.js and package.json.
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
Written by Irakli Nadareishvili
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Npm
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#