It would be great if --watch could optionally accept a number of milliseconds to debounce (i.e how long to wait, since the last change event was received), instead of naively responding immediately to a change.
This is useful when you copy from a src which is in a build process, so there will be a lot of files to be generated, and it should wait until all are done before copying.
It's not only for optimization & speed, cause in my actual use case it breaks when src is under a full build, and I have to restart the cpx process.... The partial build of src on the other hand works like a charm!
Hey, great project, very useful!
It would be great if
--watch
could optionally accept a number of milliseconds to debounce (i.e how long to wait, since the last change event was received), instead of naively responding immediately to a change.This is useful when you copy from a
src
which is in a build process, so there will be a lot of files to be generated, and it should wait until all are done before copying.It's not only for optimization & speed, cause in my actual use case it breaks when src is under a full build, and I have to restart the cpx process.... The partial build of src on the other hand works like a charm!