ui5-tooling icon indicating copy to clipboard operation
ui5-tooling copied to clipboard

Enable watch mode for build

Open petermuessig opened this issue 5 years ago • 3 comments

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)

petermuessig avatar Nov 22 '19 11:11 petermuessig

@RandomByte any plans/roadmap for this one? Or any plugin/extension to use here?

henriquemattos avatar May 11 '22 15:05 henriquemattos

Hi, @petermuessig we do have this as a middleware for the server. Do you think we can extend to the builder?

henriquemattos avatar Aug 16 '23 15:08 henriquemattos

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.

petermuessig avatar Aug 16 '23 20:08 petermuessig