Skip to content

Commit

Permalink
Merge pull request #13 from ezsystems/reduce_package_size
Browse files Browse the repository at this point in the history
EZP-25713: Reduce size of asset bundle further
  • Loading branch information
andrerom committed May 12, 2016
2 parents cc9a868 + e6caff4 commit 93f8de4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bin/prepare_release.sh
Expand Up @@ -43,6 +43,8 @@ check_command "bower"
VENDOR_DIR=`cat .bowerrc | grep "directory" | cut -d ':' -f 2 | sed 's/[ "]//g'`
YUI3_DIR="$VENDOR_DIR/yui3"
YUI3_NOTICE="$YUI3_DIR/YUI3_IN_PLATFORMUIASSETSBUNDLE.txt"
ALLOY_DIR="$VENDOR_DIR/alloy-editor"
ALLOY_NOTICE="$ALLOY_DIR/ALLOY_IN_PLATFORMUIASSETSBUNDLE.txt"

CURRENT_BRANCH=`git branch | grep '*' | cut -d ' ' -f 2`
TMP_BRANCH="version_$VERSION"
Expand All @@ -62,11 +64,18 @@ bower install
check_process "run bower"

echo "# Removing, docs, API docs and tests from YUI"
rm -rf "$YUI3_DIR/api" "$YUI3_DIR/docs" "$YUI3_DIR/tests"
rm -rf "$YUI3_DIR/api" "$YUI3_DIR/docs" "$YUI3_DIR/tests" "$YUI3_DIR/build/*/*-coverage.js" "$YUI3_DIR/build/*/*-debug.js"
check_process "clean YUI"
echo "This is a customized YUI3 version." > $YUI3_NOTICE
echo "To decrease the size of the bundle, it does not include the API docs," >> $YUI3_NOTICE
echo "the documentation and the unit tests" >> $YUI3_NOTICE
echo "the documentation, the unit tests or the generated debug/coverage versions of YUI code." >> $YUI3_NOTICE

echo "# Removing API docs and lib from alloy-editor"
rm -rf "$ALLOY_DIR/api" "$ALLOY_DIR/lib"
check_process "clean alloy-editor"
echo "This is a customized Alloy version." > $ALLOY_NOTICE
echo "To decrease the size of the bundle, it does not include API docs and lib" >> $ALLOY_NOTICE


echo "# Creating the custom branch: $TMP_BRANCH"
git checkout -q -b "$TMP_BRANCH" > /dev/null
Expand Down

0 comments on commit 93f8de4

Please sign in to comment.