JuliaDocs / LiveServer.jl

Simple development server with live-reload capability for Julia.
MIT License
143 stars 26 forks source link

I made BetterFileWatching.jl and maybe it's useful? #124

Open fonsp opened 3 years ago

fonsp commented 3 years ago

I made small package https://github.com/JuliaPluto/BetterFileWatching.jl which can recursively watch a directory for changes, including changes to file contents. It uses Deno (made available through BinaryBuilder) to access its watchFs standard lib, which is well-tested and widely used. A possible disadvantage is the ~30MB binary dependency of Deno.

Maybe it's useful to LiveServer.jl, but if you are happy with the existing file watching system then it's probably not worth the switch.

tlienart commented 3 years ago

what are the potential advantages?

fonsp commented 3 years ago

It has recursive file watching built-in (you just provide the directory), so you won't need the custom implementation anymore.

If you were planning to improve and maintain the current system, then consider switching, if you are happy with how it currently works, then leave it as is.

tlienart commented 3 years ago

Alright, I need to look a bit at the package and see how the switch would happen. Thanks Fons!