etsy / kevin-middleware

This is an Express middleware that makes developing javascript in a monorepo easier.
MIT License
110 stars 5 forks source link

Add an endpoint to restart a compiler by name #11

Closed salemhilal closed 3 years ago

salemhilal commented 3 years ago

This endpoint has a 'soft' and a 'hard' restart. The former kicks off what is effectively a partial recompilation by invalidating the state of the compiler. It's pretty fast, but isn't good at things like busting caches. A 'hard' restart literally closes and restarts the compiler, showing the overlay and all that.

This isn't all that fancy yet, and I'd want to add a "stop" and "start" endpoint at some point (and maybe a UI?), but this'll at least let us unstick a compiler with a bad cache.