aboutsummaryrefslogtreecommitdiffstats
path: root/build/release.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2015-11-12 13:18:59 -0500
committerTimmy Willison <timmywillisn@gmail.com>2015-11-16 11:22:20 -0500
commitcf7102c3f1bcbd135f24947a3a3216cff272bdc2 (patch)
tree6a51615585760bb0831db372c5df93c5d5632277 /build/release.js
parent78b9eac1198627eb4dad0cc35334c7704449f310 (diff)
downloadjquery-cf7102c3f1bcbd135f24947a3a3216cff272bdc2.tar.gz
jquery-cf7102c3f1bcbd135f24947a3a3216cff272bdc2.zip
Release: push a custom slim build to the CDN
Fixes gh-2653 Close gh-2711
Diffstat (limited to 'build/release.js')
-rw-r--r--build/release.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/build/release.js b/build/release.js
index 5feddfa24..a333d05b4 100644
--- a/build/release.js
+++ b/build/release.js
@@ -2,7 +2,14 @@
module.exports = function( Release ) {
var
- files = [ "dist/jquery.js", "dist/jquery.min.js", "dist/jquery.min.map" ],
+ files = [
+ "dist/jquery.js",
+ "dist/jquery.min.js",
+ "dist/jquery.min.map",
+ "dist/jquery.slim.js",
+ "dist/jquery.slim.min.js",
+ "dist/jquery.slim.min.map"
+ ],
cdn = require( "./release/cdn" ),
dist = require( "./release/dist" ),
ensureSizzle = require( "./release/ensure-sizzle" ),
@@ -27,6 +34,11 @@ module.exports = function( Release ) {
*/
generateArtifacts: function( callback ) {
Release.exec( "grunt", "Grunt command failed" );
+ Release.exec(
+ "grunt custom:-ajax,-effects,-deprecated --filename=jquery.slim.js && " +
+ "grunt remove_map_comment --filename=jquery.slim.js",
+ "Grunt custom failed"
+ );
cdn.makeReleaseCopies( Release );
callback( files );
},
@@ -47,7 +59,7 @@ module.exports = function( Release ) {
*/
dist: function( callback ) {
cdn.makeArchives( Release, function() {
- dist( Release, callback );
+ dist( Release, files, callback );
} );
}
} );