]> source.dussan.org Git - jquery.git/commitdiff
Actually omit files that are specified. Fixes #11943
authorRick Waldron <waldron.rick@gmail.com>
Thu, 21 Jun 2012 00:39:22 +0000 (20:39 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 21 Jun 2012 00:39:22 +0000 (20:39 -0400)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
grunt.js

index ddd81becfef37f3ddbf480c38534cc4b04ce7674..78f1ac52e53fddf28df7d32ff59658e125459c3a 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -278,12 +278,14 @@ module.exports = function( grunt ) {
                        this.file.src.forEach(function( filepath ) {
                                var flag = filepath.flag,
                                                specified = false,
+                                               omit = false,
                                                message = "";
 
                                if ( flag ) {
                                        if ( excluded[ flag ] !== undefined ) {
                                                message = ( "Excluding " + flag ).red;
                                                specified = true;
+                                               omit = true;
                                        } else {
                                                message = ( "Including " + flag ).green;
 
@@ -310,7 +312,9 @@ module.exports = function( grunt ) {
                                        filepath = filepath.src;
                                }
 
-                               compiled += file.read( filepath );
+                               if ( !omit ) {
+                                       compiled += file.read( filepath );
+                               }
                        });
 
                        // Embed Date