File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 22# their custom IEx configuration on top of project-specific configurations.
33import_file_if_available ( "~/.iex.exs" )
44
5+ # Automatically reload code changes after code has been recompiled.
6+ # Combine this with Mise task `watch-compile` to automatically recompile code when a file changes.
7+ IEx . configure ( auto_reload: true )
8+
59# Add project-specific configuration here...
Original file line number Diff line number Diff line change 11[tools ]
22erlang = " 28.2"
33elixir = " 1.19.4-otp-28"
4+ # Watch for file changes
5+ watchexec = " 2.3.2"
46
57[settings ]
68# Hooks are experimental
@@ -30,6 +32,12 @@ postinstall = """
3032 mix local.rebar --force --if-missing
3133"""
3234
35+
36+ [tasks .watch-compile ]
37+ description = " Automatically recompile Elixir code when Elixir files change"
38+ # It runs at most once every 5 seconds, and restarts if it's still running
39+ run = " watchexec --debounce 5sec --restart --clear --exts 'ex,exs' -- mix compile --force"
40+
3341[tasks .docker-compose-up ]
3442description = " Start Docker Compose services, waiting for them to be healthy before exiting"
3543run = " docker compose up --wait"
You can’t perform that action at this time.
0 commit comments