ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.
MIT License
241 stars 44 forks source link

Watch mode enhancement #79

Closed laenas closed 3 years ago

laenas commented 3 years ago

This is a general shoring up of the filewatcher behavior in watch mode.

This is the result of a question I asked a few weeks back on Slack about Fornax's watch mode not working for me - which was baffling, and a glance at the (previous) code didn't show any obvious issues. But the two points ahead are overlapping safety fixes for the same root cause issue of watch mode failing for me: I am using Fornax to generate my github.io page. So the previous watcher behavior saw laenas.github.io and would not dynamically update.

With only the first fix above, this issue might occur even more obscurely (Someone could plausibly name a watched file something like /posts/.gitignore-howto.md With only the second fix above, it's unlikely there'd be a problem - but it still isn't inconceivable that someone works locally in something like ~/repos/.git/myfornaxsite

baronfel commented 3 years ago

This seems like a good change, thanks!