diff options
author | Scott González <scott.gonzalez@gmail.com> | 2014-03-18 11:48:21 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-21 12:33:58 -0400 |
commit | e04c465b644b1f756155cf15af5fda0e63f585e3 (patch) | |
tree | 351277fe129c6c2f406bc2f811e5dbbbfdbfa6b8 /build | |
parent | 10d7d5ce9db60359694aa87d5856007af0ed4912 (diff) | |
download | jquery-e04c465b644b1f756155cf15af5fda0e63f585e3.tar.gz jquery-e04c465b644b1f756155cf15af5fda0e63f585e3.zip |
Build: Update release script for new jquery-release API
Closes gh-1544
(cherry picked from commit 5265cdac3d84b7bb4f8013ef10adaa5a9968fb1c)
Diffstat (limited to 'build')
-rw-r--r-- | build/release.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/build/release.js b/build/release.js index 116264ed5..dfaa14d9d 100644 --- a/build/release.js +++ b/build/release.js @@ -4,10 +4,6 @@ module.exports = function( Release ) { fs = require( "fs" ), shell = require( "shelljs" ), - // Windows needs the .cmd version but will find the non-.cmd - // On Windows, ensure the HOME environment variable is set - gruntCmd = process.platform === "win32" ? "grunt.cmd" : "grunt", - devFile = "dist/jquery.js", minFile = "dist/jquery.min.js", mapFile = "dist/jquery.min.map", @@ -126,9 +122,7 @@ module.exports = function( Release ) { * @param {Function} callback */ generateArtifacts: function( callback ) { - if ( Release.exec( gruntCmd ).code !== 0 ) { - Release.abort("Grunt command failed"); - } + Release.exec( "grunt", "Grunt command failed" ); makeReleaseCopies(); callback([ "dist/jquery.js", "dist/jquery.min.js", "dist/jquery.min.map" ]); }, @@ -169,3 +163,8 @@ module.exports = function( Release ) { } }); }; + +module.exports.dependencies = [ + "archiver@0.5.2", + "shelljs@0.2.6" +]; |