-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor moonc and overhaul watchers
- Essentially rewrote both SleepWatcher and InotifyWatcher - Added test suites for both, including an expanded set of filesystem stubs in order to test them in isolation from the underlying filesystem - The filesystem stubs have their own tests, kek Improvements as a result of these changes: - Watch mode will remove "orphaned" .lua output files if/when their corresponding .moon input files are deleted - But it will not remove .lua files that have no corresponding .moon file to begin with, in order to avoid e.g. removing vendored Lua modules - Both Watcher types will properly handle creation of new subdirectories - There *shouldn't* be any problematic races with this, although inotify's lack of recursive directory watching makes it difficult to know for sure - More of the code is tested, and more of the code now *could* be tested (but isn't yet) - Some bugs were fixed Downsides: - Somewhat gnarlier tests - Moar lines of code
- Loading branch information
Showing
10 changed files
with
968 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.