demonnic / muddler

A build tool for Mudlet package developers
MIT License
39 stars 12 forks source link

add watch option to automatically rebuild on source file modification #35

Closed krystophv closed 5 months ago

krystophv commented 5 months ago

pretty much what it says on the tin. It's pretty rudimentary since the majority of the nicer file modification mechanisms aren't implemented in the filesystem layer that Microsoft uses for WSL2 and, hence, don't trigger for docker under Windows. When a file changes in the src directory, it just runs the build process when it picks up the changed modification time on a regular 1 second interval. I've run the java jar and docker test image against the test packages without incident on Windows and in WSL.

I'm not a groovy dev and was assisted by an LLM. I've scoured the docs for the code used and everything seems alright, but I'm not up on idiomatic Groovy by any means and am more than open to feedback.

demonnic commented 5 months ago

At first glance this looks just fine. I'll want to give it a practical test in the morning before merging and doing a release, but by and large should make it in.

demonnic commented 5 months ago

Sorry this took so long. Looks good, tests out, merging and releasing