Skip to content

Instantly share code, notes, and snippets.

@izaera
Last active September 17, 2020 11:00
Show Gist options
  • Save izaera/f47d099d84bdc455086ee2a43e0dcab9 to your computer and use it in GitHub Desktop.
Save izaera/f47d099d84bdc455086ee2a43e0dcab9 to your computer and use it in GitHub Desktop.

Steps Needed to Implement React Fragments

All Portal stuff is supposedly merged, so we all need to do is modify the Fragment CLI and the bundler to do what was described in the PoC description (look for section Explaining the PoC inside the document).

This includes:

  1. Modify the Fragments CLI to invoke helper build programs before creating the ZIP file: instead of packaging source files directly, let another enter the party to process those file before writing them to the ZIP.

  2. Modify the Fragments CLI to set the fragment type to react (as specified in Portal).

  3. Modify the bundler to process Liferay fragments: this is almost done in this branch. It needs some polishing and fixing one TODO but it was working the last time we used it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment