lawik

lawik

Nerves Core Team

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.

First Post!

lawik

lawik

Nerves Core Team

@zachdaniel what is more helpful around Igniter, ask question in Ash forum or ping you? :smiley:

Cause I didn’t see a space to put this in that made sense that you’d see :slight_smile:

Most Liked

lawik

lawik

Nerves Core Team

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

zachdaniel

Creator of Ash

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 :+1:

Last Post!

axelson

axelson

Scenic Core Team

I wonder if it would first make sense to start by creating an igniter-powered version of mix phx.new and mix nerves.new, then you could adapt those to be able to work together (possibly within a single project) or work in a poncho fashion. Although maybe that’s what you have in mind already.

Where Next?

Popular in Questions Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement