class Mint::Reactor
- Mint::Reactor
- Reference
- Object
Overview
Reactor is the development server of Mint, it has the following features:
- Serve the compiled application script, index file, and favicons
- Watch all source files (application and packages as well) and if any changed it removes its AST from the cache, parses it again and then recompile the application script
- Renders any error as HTML
- Keeps a cache of ASTs of the parsed files for faster recompilation
- When --auto-format flag is passed all source files are watched and if any changes it formats the file
Defined in:
reactor.crConstructors
Class Method Summary
Instance Method Summary
- #ast : Ast
- #compile_script
- #index
- #init(workspace)
- #live_reload
-
#notify
Notifies all connected sockets to reload the page.
- #script : String | Nil
-
#setup_kemal
Sets up the kemal routes...
- #terminal
- #update(result)
-
#watch_for_changes
Sets up watchers to detect changes