kaleidawave / ezno

A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
https://kaleidawave.github.io/posts/introducing-ezno/
MIT License
2.3k stars 42 forks source link

Watch mode #164

Open kaleidawave opened 3 weeks ago

kaleidawave commented 3 weeks ago

It would be great to have a --watch mode for the ezno check command. Effectively running ezno check anytime a file in the project is updated.

notify: https://docs.rs/notify/latest/notify looks like a good library to do this!

Currently the checker doesn't do anything incremental. So it is fine just to call check_project again and again without any fine grained specifics for only part of a project to be checked / invalidated.

One consideration is whether then watch will support glob syntax (that is coming in #155)? Maybe the watched file could be run through Pattern::matches