For LiveView Native's setup task I am doing some codegen with Sourceror to inject or modify existing config settings within config/config.exs and config/dev.exs"
After that step I want to run generators but the generators themselves would rely upon config settings.
There appears to be no way to do this in a single step within a Task at the moment.
My naive approach was:
Mix.Task.reenable("compile")
Mix.Task.run("compile")
but the Application.env was not changed after this within the runtime
What would be nice is if within a Mix task a full application recompilation would be done. So without leaving the runtime a complete recompilation could be triggered.
If there is a way to do this today any pointers would be greatly appreciated.
FWIW, Zach Daniels is also in need of this for Igniter.