The JavaScript source code is customized to improve performance.
To customize the JavaScript source code:
| 1. | Create a working directory where you can extract sources from the JasperReports Server source bundle zip file (TIB_js-jrs_<version>_src.zip). |
| 3. | Install yarn (version 1.22.x is required). |
| 4. | Run the following commands to install node modules. |
| 5. | Make your changes to the JavaScript source code. |
| 6. | Run the following commands to build the final bundled static assets. |
| • | cd jasperserver-ui/pro/jrs-ui-pro |
| • | yarn run build Bundled static assets will be placed in the jrs-ui/build/overlay/scripts folder. |
| 7. | Back up scripts folder of your JasperReports Server instance deployment. For example, <tomcat>/webapps/jasperserver-pro/scripts folder, when Apache Tomcat is used. |
| 8. | Delete the content of the scripts folder of your JasperReports Server instance deployment. For example, <tomcat>/webapps/jasperserver-pro/scripts folder. |
| 9. | To deploy bundled static assets (build result) to the JasperReports Server instance, copy the content of jrs-ui-pro/build/overlay/scripts folder to the scripts folder of your JasperReports Server instance deployment. For example, <tomcat>/webapps/jasperserver-pro/scripts folder. |
| Visualize.js will be built as part of the build process of JavaScript source code. Therefore, there is no separate build process for Visualize.js while starting JasperReports Server 8.0.0.
|
Recommended Comments
There are no comments to display.