ExRerun
Recompiles mix project on any change to the project src files.
The initial version of this project is inspired by the - currently
unmaintained - remix project by AgilionApps:
https://github.com/AgilionApps/remix
Installation
Install ex_rerun by adding it as a dependency to mix.exs.
def deps do
[{:ex_rerun, "~> 0.1", only: :dev}]
end
Configuration
It is possible to configure ex_rerun using the following parameters:
Note: the example below shows the default values.
config :ex_rerun,
scan_interval: 4000,
silent: false,
elm: false,
test: false,
escript: false,
paths: ["lib", "priv"],
file_types: [".ex", ".exs", ".eex", ".json"]
where:
scan_intervalspecifies the number of ms to wait between rerun checks,silenttoggles whether to print every timeex_rerunrecompiles,elmtoggles whether to run the elm compilation task on recompile, requires elm_compile to be installed as a project dependency,testtoggles whether to also run mix test after each recompilation,escripttoggles whether to run the escript compilation task on recompile,pathslists which folders to monitor, andfile_typeslists which files that will trigger a rerun when changed.