aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-05-06 09:52:23 -0400
committerScott González <scott.gonzalez@gmail.com>2014-05-06 10:01:18 -0400
commit079279afd4bc9ca7bc19fb34c539621997033b22 (patch)
tree37ff8616f23e8040f553a0f75f5a635016550e33
parentb22280385c05eaf10f4d480c546906b85aa011e1 (diff)
downloadjquery-ui-079279afd4bc9ca7bc19fb34c539621997033b22.tar.gz
jquery-ui-079279afd4bc9ca7bc19fb34c539621997033b22.zip
Build: Generate pre-releases the same way as stable releases
Fixes #9998
-rw-r--r--build/release.js52
1 files changed, 1 insertions, 51 deletions
diff --git a/build/release.js b/build/release.js
index 74d968550..6362ca498 100644
--- a/build/release.js
+++ b/build/release.js
@@ -3,50 +3,6 @@ module.exports = function( Release ) {
var shell = require( "shelljs" ),
path = require( "path" );
-function buildPreReleasePackage( callback ) {
- var builder, files, jqueryUi, packer, target,
- downloadBuilder = require( "download.jqueryui.com" );
- jqueryUi = new downloadBuilder.JqueryUi( path.resolve( "." ) );
- builder = new downloadBuilder.Builder( jqueryUi, ":all:" );
- packer = new downloadBuilder.Packer( builder, null, {
- addTests: true,
- bundleSuffix: "",
- skipDocs: true,
- skipTheme: true
- });
- target = "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version + "-cdn.zip";
-
- console.log( "Building release files" );
- packer.pack(function( error, _files ) {
- if ( error ) {
- Release.abort( "Failed packing pre-release package", error );
- }
- files = _files.map(function( file ) {
-
- // Strip first path
- file.path = file.path.replace( /^[^\/]*\//, "" );
- return file;
- }).filter(function( file ) {
-
- // Filter development-bundle content only
- return (/^development-bundle/).test( file.path );
- }).map(function( file ) {
-
- // Strip development-bundle
- file.path = file.path.replace( /^development-bundle\//, "" );
- return file;
- });
-
- downloadBuilder.util.createZip( files, target, function( error ) {
- if ( error ) {
- Release.abort( "Failed create pre-release zip", error );
- }
- console.log( "Built zip package at " + path.relative( "../..", target ).cyan );
- return callback();
- });
- });
-}
-
function buildCDNPackage( callback ) {
console.log( "Building CDN package" );
var downloadBuilder = require( "download.jqueryui.com" ),
@@ -99,13 +55,7 @@ Release.define({
Release.exec( "grunt manifest" );
manifestFiles = shell.ls( "*.jquery.json" );
- if ( Release.preRelease ) {
-
- // TODO no need to create a zip file here, just copy the needed files to dist/cdn
- buildPreReleasePackage( copyCdnFiles );
- } else {
- buildCDNPackage( copyCdnFiles );
- }
+ buildCDNPackage( copyCdnFiles );
}
});