Martin Vaněk 27 Days Ago - Edited Another great piece to the puzzle, thanks David. I would also like to mention possibility to develop CE with hotswap within Liferay page. For us this works the best since we can see the whole page with all the resources included not just the CE (also same page context, sesion, cookies..). We are using what Testray team presented in /dev/24 (link to the presentation https://youtu.be/1wfUCTNqG58?t=7338) and its been wonderful, I am very grateful for it. If I should do quick summary it uses Vites backend integration https://vitejs.dev/guide/backend-integration.html Basically you just include 3 files in your manually created development CE and it works very nicely and very fast. Please sign in to reply. Reply as... Cancel David H Nebinger Martin Vaněk 21 Days Ago - Edited Thanks Martin! Yeah there's a lot more that can be done outside of the 5 easy steps. This post was meant to help React developers get their projects on Liferay, then tackle more advanced topics like hotswap, shared modules, ... Please sign in to reply. Reply as... Cancel
David H Nebinger Martin Vaněk 21 Days Ago - Edited Thanks Martin! Yeah there's a lot more that can be done outside of the 5 easy steps. This post was meant to help React developers get their projects on Liferay, then tackle more advanced topics like hotswap, shared modules, ... Please sign in to reply. Reply as... Cancel
Brahma Teja Ponnuru 27 Days Ago - Edited Hi David, Thanks for the blog, steps 1 to 5 are very clear, but to actually build the zip file you told to use this ../../gradlew build command but how it will work wihtout a liferay workspace, and if we need to use a liferay workspace where to copy this custom element folder, could you please specifiy that steps as well. Please sign in to reply. Reply as... Cancel David H Nebinger Brahma Teja Ponnuru 21 Days Ago - Edited You need the Liferay Workspace Brahma in order to build the right assets for deployment. It's not going to build the right zip file outside of the Liferay Workspace. Please sign in to reply. Reply as... Cancel
David H Nebinger Brahma Teja Ponnuru 21 Days Ago - Edited You need the Liferay Workspace Brahma in order to build the right assets for deployment. It's not going to build the right zip file outside of the Liferay Workspace. Please sign in to reply. Reply as... Cancel
Brahma Teja Ponnuru 27 Days Ago - Edited Created a Liferay workspace and created the react project under modules folder then if I try to build it is giving error "Execution failed for task ':modules:my-react-app:packageRunBuild'. > Process 'command 'cmd'' finished with non-zero exit value 1". Please sign in to reply. Reply as... Cancel David H Nebinger Brahma Teja Ponnuru 21 Days Ago - Edited It's important to build the React apps from the client-extensions folder in the workspace, not the modules folder. The modules folder is reserved for OSGi (Java) modules. The React apps need to be in the client-extensions folder for the workspace to handle them correctly. Please sign in to reply. Reply as... Cancel
David H Nebinger Brahma Teja Ponnuru 21 Days Ago - Edited It's important to build the React apps from the client-extensions folder in the workspace, not the modules folder. The modules folder is reserved for OSGi (Java) modules. The React apps need to be in the client-extensions folder for the workspace to handle them correctly. Please sign in to reply. Reply as... Cancel