And i think the hot deploy for javascript files is very important for Studio. If every time made changes for javascript ,we must restart application ,it will be very ineffective.
I suppose that’s the listener that tracks filesystem changes, and triggers the hot deploy. The fact that the hot deploy has been triggered does not mean that your specific changes are included in what is being hot-deployed. But for this you need an official response from the cuba team…
Based on my personal experience, the hot deploy feature is designed for the “everyday” cuba users, and that users do not have (or are willing to) deal with javascript files…
What I mean is that the ability to tweak the html/css/js of screens is something that is considered advanced (or exceptional) usage of the platform. For example, I tend to relegate that kind of code (custom js components, or similar things) in add-ons that are then simply “consumed” by target applications. In that regard, I never felt the need for hot-reload when developing such add-ons.
Regarding the hot deploy for javascript ,let us wait an official response.
Did you develop a javascript component that described in 使用 JavaScript 库 - CUBA 框架开发者手册. Is there a way make the browser load the changed javascript and don’t need restart the application?
I don’t know if yours is a developer side use case (compile time), or a business/feature requirement (runtime).
That is, if the reloading of a dynamic or external JS file is part of your frontend business logic (at runtime), then there are several solutions to this, all of them outside the scope of this discussion (and not related to CUBA in any way).
If you refer to the compile time experience, that is hot reloading JS files that you change in the IDE, there’s no solution at the moment, or at least nothing that I’m aware of…
Hi!
Hot deploy of js is not supported yet. @pfurini is right, saying that triggering the hot deploy does not mean that the changes will be handled by CUBA. We will think about the support of javascript hot deploy.