Index: Gruntfile.js
===================================================================
--- Gruntfile.js	(revision 29711)
+++ Gruntfile.js	(working copy)
@@ -2,8 +2,27 @@
 module.exports = function(grunt) {
 	var path = require('path'),
 		SOURCE_DIR = 'src/',
-		BUILD_DIR = 'build/';
+		BUILD_DIR = 'build/',
+		dir_path = function( dirpath ) {
+			// filter to requite a directory path for plugin tasks
+			var index, dir = grunt.option( 'dir' );
 
+			// Don't filter when no target folder is specified
+			if ( ! dir ) {
+				grunt.fail.fatal('No plugin directory specified, use --dir=foldername');
+			}
+
+			dirpath = dirpath.replace( /\\/g, '/' );
+			index = dirpath.lastIndexOf( '/' + dir );
+
+			// Match only the folder name passed from cli
+			if ( -1 !== index ) {
+				return true;
+			}
+
+			return false;
+		};
+
 	// Load tasks.
 	require('matchdep').filterDev(['grunt-*', '!grunt-legacy-util']).forEach( grunt.loadNpmTasks );
 	// Load legacy utils
@@ -288,24 +307,7 @@
 				//
 				//    grunt jshint:plugins --dir=foldername
 				//
-				filter: function( dirpath ) {
-					var index, dir = grunt.option( 'dir' );
-
-					// Don't filter when no target folder is specified
-					if ( ! dir ) {
-						return true;
-					}
-
-					dirpath = dirpath.replace( /\\/g, '/' );
-					index = dirpath.lastIndexOf( '/' + dir );
-
-					// Match only the folder name passed from cli
-					if ( -1 !== index ) {
-						return true;
-					}
-
-					return false;
-				}
+				filter: dir_path
 			}
 		},
 		qunit: {
@@ -351,6 +353,20 @@
 					'!wp-includes/js/underscore.min.js',
 					'!wp-includes/js/zxcvbn.min.js'
 				]
+			},
+			plugins: {
+				expand: true,
+				cwd: SOURCE_DIR + 'wp-content/plugins',
+				ext: '.min.js',
+				src: [
+					'**/*.js',
+					'!**/*.min.js'
+				],
+				// Limit Uglify's run to a single specified plugin directory:
+				//
+				//    grunt uglify:plugins --dir=foldername
+				//
+				filter: dir_path
 			}
 		},
 		concat: {
