Skip to content

Commit

Permalink
Build: Update release script for new jquery-release API
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez authored and dmethvin committed Mar 21, 2014
1 parent 2c2c93c commit 5265cda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 6 additions & 7 deletions build/release.js
Expand Up @@ -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",
Expand Down Expand Up @@ -127,9 +123,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" ]);
},
Expand Down Expand Up @@ -170,3 +164,8 @@ module.exports = function( Release ) {
}
});
};

module.exports.dependencies = [
"archiver@0.5.2",
"shelljs@0.2.6"
];
2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -29,7 +29,6 @@
],
"dependencies": {},
"devDependencies": {
"archiver": "0.5.2",
"commitplease": "1.7.0",
"grunt": "0.4.2",
"grunt-bowercopy": "0.7.1",
Expand All @@ -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": {
Expand Down

0 comments on commit 5265cda

Please sign in to comment.