Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-25713: Reduce size of asset bundle further #13

Merged
merged 1 commit into from May 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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