This project shows how both
react-union-scripts can be used within Liferay portal platform.
We target the version 7.2 and above. For the Liferay 7.0 and 7.1 versions see the older versions of the boilerplates.
git clone https://github.com/lundegaard/react-union.git cd react-union/boilerplates/react-union-boilerplate-liferay-basic yarn && yarn start
union.config.js is configured to:
yarn startyou run development server over
yarn startto start DEV server.
yarn start:proxyto start proxy server with Hot Module Replacement available
union.config.js. By default the target is
jar can be found in the
dist folder as it is produced by liferay-npm-bundler. We do some preprocessing to make the filenames of more deterministic in the bundle script. This way we can make HMR in DEV mode work.
Portlets are a preferred way how to place union apps within Liferay pages.
Make sure you have Yarn v1.3.1 or higher and Node v8 or higher.
build folder and creates AMD loader specific
loader subfolder which is then used by gradle build script in
yarn build --release --analyze