mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Release: copy sizzle separately into an 'external' folder
Fixes gh-2945
This commit is contained in:
parent
fabdc35eee
commit
7cb6958ab8
@ -12,7 +12,6 @@ module.exports = function( Release, complete ) {
|
||||
// These files are included with the distribution
|
||||
files = [
|
||||
"src",
|
||||
"external/sizzle",
|
||||
"LICENSE.txt",
|
||||
"AUTHORS.txt",
|
||||
"package.json"
|
||||
@ -56,7 +55,9 @@ module.exports = function( Release, complete ) {
|
||||
function copy() {
|
||||
|
||||
// Copy dist files
|
||||
var distFolder = Release.dir.dist + "/dist";
|
||||
var distFolder = Release.dir.dist + "/dist",
|
||||
externalFolder = Release.dir.dist + "/external";
|
||||
|
||||
shell.mkdir( "-p", distFolder );
|
||||
[
|
||||
"dist/jquery.js",
|
||||
@ -66,6 +67,10 @@ module.exports = function( Release, complete ) {
|
||||
shell.cp( "-f", Release.dir.repo + "/" + file, distFolder );
|
||||
} );
|
||||
|
||||
// Copy Sizzle
|
||||
shell.mkdir( "-p", externalFolder );
|
||||
shell.cp( "-rf", Release.dir.repo + "/external/sizzle", externalFolder );
|
||||
|
||||
// Copy other files
|
||||
files.forEach( function( file ) {
|
||||
shell.cp( "-rf", Release.dir.repo + "/" + file, Release.dir.dist );
|
||||
|
Loading…
Reference in New Issue
Block a user