Release: Remove copying of jquery-latest files

This commit is contained in:
Dave Methvin 2015-01-06 21:59:14 -05:00
parent 83b038fc81
commit c34ed46eee

View File

@ -14,14 +14,7 @@ module.exports = function( Release ) {
releaseFiles = {
"jquery-VER.js": devFile,
"jquery-VER.min.js": minFile,
"jquery-VER.min.map": mapFile //,
// Disable these until 2.0 defeats 1.9 as the ONE TRUE JQUERY
// "jquery.js": devFile,
// "jquery.min.js": minFile,
// "jquery.min.map": mapFile,
// "jquery-latest.js": devFile,
// "jquery-latest.min.js": minFile,
// "jquery-latest.min.map": mapFile
"jquery-VER.min.map": mapFile
},
googleFilesCDN = [
@ -46,9 +39,6 @@ module.exports = function( Release ) {
unpathedFile = key.replace( /VER/g, Release.newVersion ),
releaseFile = cdnFolder + "/" + unpathedFile;
// Beta releases don't update the jquery-latest etc. copies
if ( !Release.preRelease || key.indexOf( "VER" ) >= 0 ) {
if ( /\.map$/.test( releaseFile ) ) {
// Map files need to reference the new uncompressed name;
// assume that all files reside in the same directory.
@ -67,7 +57,6 @@ module.exports = function( Release ) {
} else if ( builtFile !== releaseFile ) {
shell.cp( "-f", builtFile, releaseFile );
}
}
});
}