]> source.dussan.org Git - jquery-ui.git/commitdiff
Grunt: Copy jquery from root regardless of version; fix include list for minified...
authorScott González <scott.gonzalez@gmail.com>
Mon, 2 Apr 2012 15:12:49 +0000 (11:12 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 2 Apr 2012 15:12:49 +0000 (11:12 -0400)
grunt.js

index a8ab7c666f11bcb7bae953678a5e75769d5f5613..3be6849086f837de1f804a03e06c4cc8c04ec2e3 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -82,7 +82,9 @@ function stripBanner( files ) {
 }
 
 function stripDirectory( file ) {
-       return file.replace( /.+\/(.+)$/, "$1" );
+       // TODO: we're receiving the directive, so we need to strip the trailing >
+       // we should be receving a clean path without the directive
+       return file.replace( /.+\/(.+?)>?$/, "$1" );
 }
 // allow access from banner template
 global.stripDirectory = stripDirectory;
@@ -138,7 +140,7 @@ grunt.initConfig({
                        src: [
                                "AUTHORS.txt",
                                "GPL-LICENSE.txt",
-                               "jquery-1.7.1.js",
+                               "jquery-*.js",
                                "MIT-LICENSE.txt",
                                "README.md",
                                "grunt.js",