Build assets for dependent phoenix application

axelson
Wed, 30 Sep 2020 07:50:05 +0000
Questions / Help

I have an application (a nerves application actually) that depends on a phoenix application. Are there any patterns facilitate building the assets in this case? Is it generally required to precompile the assets and commit them into the git repository?

I’ve been hacking around it by cd'ing into the deps directory and running npm install inside there and modifying the phoenix application configuration to point to to the deps directory but this is hacky and generally it isn’t good to build things inside the deps directory.

I tried to search to see if anyone has already asked about this but it was quite hard to find a good search term and I don’t recall anyone asking on the forum before.

Here’s a link to the project: https://github.com/axelson/scenic-side-screen
And here’s the phoenix dependency: https://github.com/axelson/govee_phx

3 posts - 2 participants