Scenic Live Reload is a library that you can drop-in to your Scenic applications to give you nearly effortless live-reloading capabilities in development. No longer will you have to stop your scenic app and restart it, instead when you save changes to your files, those will be picked up, recompiled, and then your current scenic scene will be reloaded. It is an evolution of my scenic_starter_pack that now requires much less integration which makes it easy to drop into an existing project.
Demo:
To get started you just need to add the library to your deps, and then drop this in your configuration:
case Mix.env() do
:dev ->
config :exsync,
reload_timeout: 75,
reload_callback: {ScenicLiveReload, :reload_current_scene, []}
_ ->
nil
end
GitHub repo:
I hope everyone gets to enjoy and play around with Scenic, I know I’ve been enjoying it greatly!
I just released version 0.2.2 (and 0.2.1) of scenic_live_reload. Nothing truly new but it is tested with the latest version of scenic (0.10.5) which was released today and is also more restrictive on the version of scenic that it accepts because the next scenic version will be a larger update: