I've started using watch-tree for workflow https://github.com/astrolet/precious/blob/master/Cakefile (the assets:watch task) and would like to pass a callback (as an optional third argument) to the event watcher, so things could be a bit more dynamic. Am I asking for the right thing - passing a callback / context to the callback? This could also solve the issue of possibly wanting to know (inside the callback) which is the event that is triggering it.
I've started using watch-tree for workflow https://github.com/astrolet/precious/blob/master/Cakefile (the assets:watch task) and would like to pass a callback (as an optional third argument) to the event watcher, so things could be a bit more dynamic. Am I asking for the right thing - passing a callback / context to the callback? This could also solve the issue of possibly wanting to know (inside the callback) which is the event that is triggering it.