Replies: 1 comment
-
Yes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a programming language and need to write a build-tool able to recompile what changes, whenever it changes: a tool that computes dependencies recursively starting from an entry file, tracks whenever a file changes and rebuild what's needed.
The dependencies can use wildcards, so I need to watch both files and directories (either recursively or not), for instance:
file.in
: watch that one file.plugins/*.in
: watch theplugins/
directory and every.in
file in it.imgs/**/*.{jpg,png}
: watch theimgs/
directory recursively and every JPG/PNG file in there.All the logic is already written, but my current file-watcher has too many issues and I need to rewrite it.
I'm wondering:
"all"
events and filter them by myself?watcher.add()
andwatcher.unwatch()
the files and directories I need?Is there any project that uses chokidar for this purpose that I can look at?
Beta Was this translation helpful? Give feedback.
All reactions