]> source.dussan.org Git - jquery.git/commitdiff
Build: Update release script for new jquery-release API
authorScott González <scott.gonzalez@gmail.com>
Tue, 18 Mar 2014 15:48:21 +0000 (11:48 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 21 Mar 2014 16:33:58 +0000 (12:33 -0400)
Closes gh-1544
(cherry picked from commit 5265cdac3d84b7bb4f8013ef10adaa5a9968fb1c)

build/release.js
package.json

index 116264ed57e744bec3d7909dcaab27e4a3283954..dfaa14d9dc5a659b3db4cdd908fc1bcf112a2aca 100644 (file)
@@ -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"
+];
index 91d97499ff57d52245fd8009f2b1f9aabbe94a52..e4970fa78aeca6f6ca4c11f1fed9bf796336c71f 100644 (file)
@@ -29,7 +29,6 @@
   ],
   "dependencies": {},
   "devDependencies": {
-    "archiver": "0.5.2",
     "commitplease": "1.7.0",
     "grunt": "0.4.2",
     "grunt-bowercopy": "0.7.1",
@@ -44,7 +43,6 @@
     "gzip-js": "0.3.2",
     "load-grunt-tasks": "0.3.0",
     "requirejs": "2.1.10",
-    "shelljs": "0.2.6",
     "testswarm": "1.1.0"
   },
   "scripts": {