From 6f9241f5bb58c31749160ed808690db3f20bda43 Mon Sep 17 00:00:00 2001
From: Brian Muenzenmeyer <bmuenzenmeyer@sbcglobal.net>
Date: Fri, 13 Dec 2013 04:03:25 -0800
Subject: [PATCH] Merge pull request #17 from joemcgill/master

Load all grunt tasks using matchdep
---
 packages/patternengine-node-mustache/Gruntfile.js | 7 ++-----
 packages/patternengine-node-mustache/package.json | 3 ++-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/packages/patternengine-node-mustache/Gruntfile.js b/packages/patternengine-node-mustache/Gruntfile.js
index a55da9f7a..08ab2fad4 100644
--- a/packages/patternengine-node-mustache/Gruntfile.js
+++ b/packages/patternengine-node-mustache/Gruntfile.js
@@ -56,11 +56,8 @@ module.exports = function(grunt) {
 		}
 	});
 
-	grunt.loadNpmTasks('grunt-contrib-copy');
-	grunt.loadNpmTasks('grunt-contrib-clean');
-	grunt.loadNpmTasks('grunt-contrib-watch');
-	grunt.loadNpmTasks('grunt-contrib-sass');
-	grunt.loadNpmTasks('grunt-contrib-jshint');
+	// load all grunt tasks
+ 	require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
 
 	//load the patternlab task
 	grunt.task.loadTasks('./builder/');
diff --git a/packages/patternengine-node-mustache/package.json b/packages/patternengine-node-mustache/package.json
index 9680b82f5..c6702eab4 100644
--- a/packages/patternengine-node-mustache/package.json
+++ b/packages/patternengine-node-mustache/package.json
@@ -8,6 +8,7 @@
     "grunt-contrib-sass": "~0.2.2",
     "grunt-contrib-copy": "~0.4.0",
     "grunt-contrib-jshint": "~0.4.0",
-    "grunt-contrib-clean": "~0.5.0"
+    "grunt-contrib-clean": "~0.5.0",
+    "matchdep": "~0.3.0"
   }
 }