-
-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filewatcher #2555
Comments
xmake does not need to provide the like this task("watch")
on_run(function (target)
os.watchdir("src", function()
-- do some thing
os.exec("xmake build")
end)
end) $ xmake watch |
I used to implement similar features based on xmake plugin and entr, for private |
I have supported it in #2592 and add new
|
There are still some bugs in the fsevent based implementation on the mac, I will continue to improve it in the next few days. |
I have fixed all bugs and It is now fully available. |
Is your feature request related to a problem? Please describe.
Package managers often have a "watch" feature where code is automatically rebuilt and ran when the source is changed.
Something like https://github.com/watchexec/cargo-watch
Describe the solution you'd like
xmake watch
commandDescribe alternatives you've considered
N/A
Additional context
Each OS has different filewatcher APIs, use
inotify
on Linux,FSEvents
on Mac, andReadDirectoryChangesW
for Windows. (BSD has something calledkqueue
but I am not sure)The text was updated successfully, but these errors were encountered: