Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-83285

Create an extender to automatically deploy npm portlet without any need to write Java code

    Details

      Description

      The idea is to be able to develop npm based portlets without any need to use any Java tooling at all, just npm.

      Steps to setup test:

      1. Start portal
      2. Deploy com.liferay.npm.dummy.portlet-1.0.0.jar attached file
      3. Enter home page (http://localhost:8080

      Test:

      1. Add “NPM Dummy Portlet” portlet to page
        1. Make sure that portlet is called “NPM Dummy Portlet” (as specified in the “portlet” JSON of the “package.json” file inside the JAR)
        2. Make sure that portlet is under the “Sample” category (as specified in the “portlet” JSON of the “package.json” file inside the JAR)
      2. Add another “NPM Dummy Portlet” portlet to page to make sure that portlet is instanceable (as specified in the “portlet” JSON of the “package.json” file inside the JAR)
      3. Make sure that the portlet renders and shows the following ouput*:

       

      • Note, however, that “Portlet Namespace” and “Portlet Element Id” may change due to the instance id.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.1.X
                  Master