aboutsummaryrefslogtreecommitdiffstats
path: root/build/release/dist.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/release/dist.js')
-rw-r--r--build/release/dist.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/build/release/dist.js b/build/release/dist.js
index 32053eafb..514d40739 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -1,13 +1,16 @@
-module.exports = function( Release, complete ) {
+module.exports = function( Release, files, complete ) {
var
fs = require( "fs" ),
shell = require( "shelljs" ),
pkg = require( Release.dir.repo + "/package.json" ),
- distRemote = Release.remote.replace( "jquery.git", "jquery-dist.git" ),
+ distRemote = Release.remote
+
+ // For local and github dists
+ .replace( /jquery(\.git|$)/, "jquery-dist$1" ),
// These files are included with the distribution
- files = [
+ extras = [
"src",
"LICENSE.txt",
"AUTHORS.txt",
@@ -54,17 +57,13 @@ module.exports = function( Release, complete ) {
// Copy dist files
var distFolder = Release.dir.dist + "/dist";
shell.mkdir( "-p", distFolder );
- [
- "dist/jquery.js",
- "dist/jquery.min.js",
- "dist/jquery.min.map"
- ].forEach( function( file ) {
- shell.cp( Release.dir.repo + "/" + file, distFolder );
+ files.forEach( function( file ) {
+ shell.cp( "-f", Release.dir.repo + "/" + file, distFolder );
} );
// Copy other files
- files.forEach( function( file ) {
- shell.cp( "-r", Release.dir.repo + "/" + file, Release.dir.dist );
+ extras.forEach( function( file ) {
+ shell.cp( "-rf", Release.dir.repo + "/" + file, Release.dir.dist );
} );
// Write generated bower file