I have a poorly-behaving library (Cordova) that is constantly updating package.json even when there is nothing actually changed. That, in turn, is making Brunch's watcher rebuild, which then makes this library reload the browser, update package.json, and start the infinite cycle all over again. As it is now, I have to keep the Brunch watcher off and manually rebuild after every change I want to try via Cordova's serve command for the browser.
This brings up a possible (though somewhat rare) use case for having Brunch's watcher ignore changes to the package.json file. I tried setting watcher.ignored in the config to /package\.json/ to no effect. Is it worth it to have the option to ignore changes to package.json with respect to the watcher? Did I miss a possible config setting to achieve this?
Expected behavior
It could be useful to have an option to instruct the watcher to ignore package.json file changes.
Actual behavior
The following config setting didn't work as expected. Most other Brunch conventions/defaults are overridable.
Description
I have a poorly-behaving library (Cordova) that is constantly updating package.json even when there is nothing actually changed. That, in turn, is making Brunch's watcher rebuild, which then makes this library reload the browser, update package.json, and start the infinite cycle all over again. As it is now, I have to keep the Brunch watcher off and manually rebuild after every change I want to try via Cordova's serve command for the browser.
Here's the issue filed with Cordova for reference.
This brings up a possible (though somewhat rare) use case for having Brunch's watcher ignore changes to the package.json file. I tried setting watcher.ignored in the config to
/package\.json/
to no effect. Is it worth it to have the option to ignore changes to package.json with respect to the watcher? Did I miss a possible config setting to achieve this?Expected behavior
It could be useful to have an option to instruct the watcher to ignore package.json file changes.
Actual behavior
The following config setting didn't work as expected. Most other Brunch conventions/defaults are overridable.
watcher: { ignored: /package\.json/ }
Environment
package.json
contentsbrunch config contents
Other useful files, when present (log,
bower.json
etc.)n/a