lawik
Igniter generator for poncho project?
This is definitely mostly about Igniter, incidentally about Nerves and Phoenix.
Both of those projects have generators that create a mix project. The convention in Nerves is a “poncho” project, that is, not quite an umbrella. You put Phoenix as thing_ui and Nerves as thing_firmware.
The firmware project puts the UI project as a path dependency. You copy and modify a ton of Phoenix config over the the firmware project. Then you run locally or compile firmware for your device from the firmware project.
I want to make a generator that does this all for you. It seems like igniter would be very helpful for patching config and such. But I’m uncertain if the --with approach works here for igniter.new and to what extent Igniter helps for this journey. I am fundamentally generating two separate mix projects and tying them together a bit.
Most Liked
lawik
On vacation right now but can holler when I get goong on this.
Essentially I want to generate a Nerves mix project and a Phoenix mix project and then use igniter to work out ways to merge files that exist in both (such as config, mix.exs).
zachdaniel
Igniter has a .igniter.exs file that can be used to configure these things, or we can try to detect things like this, but it definitely won’t work out of the box. Interested in exploring the idea though ![]()







