cancel
Showing results for 
Search instead for 
Did you mean: 

How can I exclude files/folders from "cds watch"?

pieterjanssens
Active Participant

I'd like to be able to exclude folders/files from cds watch. Either through an argument to the CLI or via a cds config property.

If you use cds-plugin-ui5, any changes you do to the UI files are restarting cds and that is not wanted.

Since @sap/cds is using the nodemon package under the hood, as a workaround, I tried adding a nodemon.json to the project at the same location of the 'srv' folder , but that is not being picked up by nodemon.

Accepted Solutions (1)

Accepted Solutions (1)

chgeo
Advisor
Advisor
0 Kudos

Since @sap/cds-dk 7.2.0, files `app/**/webapp/**` are ignored by default. Maybe this is what you want.

Otherwise, there is no exclude mechanism yet.
How complex are the file patterns that you have? Where would you specify them (CLI ad-hoc, package.json, nodemon.json, ...)?

Answers (0)