Liferay JS Generator Commands

The npm commands shown below are available for the Liferay JS Generator:

  • npm run build: Places the output of liferay-npm-bundler in the designated output folder. The standard output is a JAR file that can be deployed manually to Liferay DXP.

  • npm run deploy: Deploys the bundle to the configured app server

  • npm run start: Tests the application in a local webpack installation instead of a Liferay DXP server. This speeds up development because you can see live changes without any need to deploy. Note, however, that because this is separate from a Liferay instance, you don’t have access to Liferay’s APIs.

« Understanding the JS Portlet Extender ConfigurationConfiguring System Settings for OSGi Bundles Created with the liferay-npm-bundler »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 1