-
Notifications
You must be signed in to change notification settings - Fork 280
Liferay portal
Julien Castelain edited this page Nov 26, 2019
·
1 revision
This document describes how to setup and use alloyeditor
for development in liferay-portal
Setting up alloyeditor
in liferay-portal
- Make sure your
master
branch is up to date withupstream
git pull upstream master
-
Install the dependencies with
yarn
-
Work on your local changes
-
Build a new release of
alloyeditor
withyarn build
-
Link the new release with
yarn link
Additionally can inspect the
~/.config/yarn/link
(on Linux/macOS) or%APPDATA%\Local\Yarn\Data\link
(on Windows) directory to make sure the symbolic link was created.
Now, you can update the alloyeditor
package in liferay-portal:
- Navigate to the
frontend-editor-alloyeditor-web
module - Link latest
alloyeditor
withyarn link alloyeditor
- Deploy the module with
gradlew deploy
Developing alloyeditor
in liferay-portal
Make sure you've setup everything correctly, as indicated in the previous step.
- Work on your local changes
- Build a new release of
alloyeditor
withyarn build
- Make sure
alloyeditor
is linked correctly.
You can now update alloyeditor
in liferay-portal:
- Re-deploy the frontend-editor-alloyeditor-web module with
gradlew deploy
Updating alloyeditor
's version in liferay-portal
To update alloyeditor
's version in liferay-portal:
- Navigate to the frontend-editor-alloyeditor-web module
- Update the
alloyeditor
dependency in thepackage.json
file - Re-deploy the module with
gradlew clean deploy
.
An example can be seen in this commit (package.json
file)