16. Steps
1- Open your bundle’s bnd.bnd file and add the Liferay-JS-Config
header to point to the configuration file that contains the module’s
definition.
BND Configuration
// .bnd
17. Steps
2- Next add the Web-ContextPath in your .bnd file, if you doesn't
inform, the Liferay will consider the properties: name and version,
localized in your package.json.
BND Configuration
// .bnd
18. Steps
3- Create a configuration file, for example config.js, in the location
you have specified in Liferay-JS-Config.
Writing the configuration file
4- Identify the loader your module requires
- YUI and AlloyUI modules
- AMD or global libraries
34. babel --source-maps -d build/resources/main/META-INF/resources src/
main/resources/META-INF/resources && liferay-npm-bundler
Now you can add the babel transpilation
command in your build script:
39. Why?
We want to get closer from the others departments, and the frontend guild
follow up is an excellent opportunity to share knowledge and solve doubts.