Description
I added the watch.onRebuild
callback to a build-script, and it immediately seemed like the script had just stalled.
At closer examination, it does in fact build - it's just that there's no notification to this callback for the first build.
Can we trigger a notification during the first build on start-up please? (Most build-tools do, afaik.)
Alternatively, if you think there's a real use-case where someone really only wants a notification for all builds except the first one, perhaps consider adding a second, identical callback, e.g. onBuild
, which would get called for every build.
(My use-case is I'd like to automatically run my tests after each incremental build - and so, I'd expect the tests to run at startup, without having to first make an arbitrary change to a file to trigger it.)