-
Notifications
You must be signed in to change notification settings - Fork 841
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
Auto-rebuild on file change #113
Comments
Yeah, it would be neat if Shake coud do this as it already knows what files to be tracking. @ndmitchell But I guess with a simple notification of "one file in this directory and subdirs changed" we can call There's definitely general demand for this; there are like 5 proper projects for recompiling like this out there. |
Via |
If we want to do this properly, we'd have to go quite a bit deeper, like looking at all of the .hi files to track the |
Relevant links: yesodweb/yesod#955 (comment) and #105 |
I would have thought a far simpler "anything under this directory changes, i rerun build" would be sufficient - as long as you get build fast enough. Generally people only put dependent files in the same folder as the project. |
That could work. We'd probably get hit with some annoying corner cases, such as |
I suppose if your project generates a lot of files, watching the whole dir could come with a performance penalty? In any case watching the whole dir vs just the shakeLiveFiles vs more detail could be considered levels of implementation of the feature. |
Working on this now, I want it too much to wait :) |
Closing, this is implemented. If there are bugs, we can follow up in separate issues. |
Moving from an internal issue tracker:
Just an idea I had: what about having a command (maybe autobuild) that scans a directory for any changes to files (via fsnotify) and, on a change, automatically rebuilds? I know this is something that I would use regularly.
Not high priority, just an idea.
The text was updated successfully, but these errors were encountered: