ui5-tooling
ui5-tooling copied to clipboard
Enable watch mode for build
Expected Behavior
It would be a nice enhancement to the builder as such to enable a watch mode. This means it should be possible to define a watch pattern per task which defines via glob patterns which resources should be monitored and then the task should be called with the information of the files being changed. That change allows to run the ui5 tooling in a watch mode and implement smart incremental builds. This contradicts a bit the development server, maybe this concept can be also used for that.
Current Behavior
Today, the only option to run a watch mode behavior is to implement this with an external watch task (npm-watch) which can run the whole build or single tasks.
Steps to reproduce the issue
not related
Context
not related
Affected components (if known)
- [X] ui5-builder
- [ ] ui5-server
- [ ] ui5-cli
- [ ] ui5-fs
- [ ] ui5-project
- [ ] ui5-logger
@RandomByte any plans/roadmap for this one? Or any plugin/extension to use here?
Hi, @petermuessig we do have this as a middleware for the server
. Do you think we can extend to the builder
?
Hi @henriquemattos, I suggest you take a look into the https://github.com/SAP-samples/ui5-typescript-helloworld/tree/testing project. In the ui5.yaml
you can see the usage of the ui5-tooling-transpile
and the ui5-middleware-livereload
. One is for embedded transpiling (on request instead of watch) and the livereload reloads the application in case of changes.