-
Notifications
You must be signed in to change notification settings - Fork 673
Back porting Alloy to Liferay Portal
This document explains how to backport Alloy UI releases into liferay-portal and liferay-portal-ee repos.
Liferay Portal have liferay-portal and liferay-portal-ee repositories that are using releases of the Alloy repository alloy-ui.
- We only backport alloy-ui commits that are required, not everything on master.
-
Access alloy-ui repository:
cd alloy-ui
-
Create a new branch or rebase with upstream/2.0.x:
git fetch upstream 2.0.x:2.0.x git checkout 2.0.x git pull --rebase upstream 2.0.x git merge 2.0.x
-
Cherry pick desired alloy-ui commits. (Note: Replace
1d20fc8
with the desired commit hash id):git cherry-pick 1d20fc8
-
Test alloy-ui for changes:
grunt build
-
Tag this commit in git. (Note: Replace
2.0.1-deprecated
with the new tag):git tag 2.0.1-deprecated
-
Push changes to your origin and upstream:
git push origin 2.0.x git push origin --tags 2.0.x git push upstream 2.0.x ( If you have permissions. If not, please send a pull request to `jonmak08` or `eduardolundgren`) git push upstream --tags 2.0.x
-
Release a new alloy-2.0.x.zip to be copied to the third-party folder on liferay:
gr release
-
Access liferay-portal repository:
cd liferay-portal
-
Rebase or create a new branch based on upstream/6.2.x and copy the released alloy-2.0.x zip to the third-party folder in liferay-portal:
git fetch upstream ee-6.2.x:ee-6.2.x git checkout ee-6.2.x git pull --rebase upstream ee-6.2.x git push origin ee-6.2.x git checkout -b LPS-XXX-update-alloy cp alloy-ui/alloy-2.0.x.zip portal-web/third-party
-
Test if Alloy is working fine on Liferay.
-
Commit the new zip file. (Note: Replace
1d20fc8
with the latest commit hash id by runninggit rev-parse --short --verify HEAD
on the alloy-ui repository):git add portal-web/third-party/alloy-2.0.x.zip git commit -a -m "LPS-XXX - Updating Alloy 2.0.x to 1d20fc8"
-
Submit the pull request to
jonmak08
oreduardolundgren
under ee-6.2.x branch:gitpr submit --reviewer=jonmak08 -b ee-6.2.x
-
Access alloy-ui repository:
cd alloy-ui
-
Create a new branch or rebase with upstream/1.5.x:
git fetch upstream 1.5.x:1.5.x git checkout 1.5.x git pull --rebase upstream 1.5.x git merge 1.5.x
-
Cherry pick desired alloy-ui commits. (Note: Replace
1d20fc8
with the desired commit hash id):git cherry-pick 1d20fc8
-
Test alloy-ui for changes. (Note: Replace
aui-module
with the modified module name):cd src/aui-module ant all
-
Tag this commit in git. (Note: Replace
1.5.1
with the new tag):git tag 1.5.1
-
Push changes to your origin and upstream:
git push origin 1.5.x git push origin --tags 1.5.x git push upstream 1.5.x ( If you have permissions. If not, please send a pull request to `jonmak08` or `eduardolundgren`) git push upstream --tags 1.5.x
-
Release a new alloy-1.5.x.zip to be copied to the third-party folder on liferay:
ant release
-
Access liferay-portal repository:
cd liferay-portal
-
Rebase or create a new branch based on upstream/ee-6.1.x and copy the released alloy 1.5.x to the third-party folder in liferay-portal:
git fetch upstream ee-6.1.x:ee-6.1.x git checkout ee-6.1.x git pull --rebase upstream ee-6.1.x git push origin ee-6.1.x git checkout -b LPS-XXX-update-alloy cp alloy-ui/alloy-1.5.0.zip portal-web/third-party
-
Test if Alloy is working fine on Liferay.
-
Commit the new zip file. (Note: Replace
1d20fc8
with the latest commit hash id by runninggit rev-parse --short --verify HEAD
on the alloy-ui repository):git add portal-web/third-party/alloy-1.5.0.zip git commit -a -m "LPS-XXX - Updating Alloy to 1d20fc8"
-
Submit the pull request to
jonmak08
oreduardolundgren
under ee-6.1.x branch:gitpr submit --reviewer=jonmak08 -b ee-6.1.x