Use umbrella apps names instead of "default"#5683
Use umbrella apps names instead of "default"#5683josevalim merged 1 commit intophoenixframework:mainfrom
Conversation
|
We also need to change |
| config :esbuild, | ||
| version: "0.17.11", | ||
| default: [ | ||
| "<%= @web_app_name %>": [ |
There was a problem hiding this comment.
I think we don't need the quotes, the web app name should be a valid identifier.
4540c6e to
dc982c8
Compare
|
@josevalim I've changed it for single apps as well and remove the extra quotes. However, I am not sure what needs to be done in |
|
The aliases like assets.setup need to pass the namespace now, otherwise they default to “default”, no? You can generate the app and give it a try! |
|
Understood @josevalim, fixed with the last commit. Thanks for the heads up! |
|
The tests are failing because of the formatter, example: The problem I see now is that either with |
|
You can always break them over multiple lines and the formatter will always be happy with it. :) |
f3cc0eb to
7fb900a
Compare
When adding more than one app to your umbrella project you can't use default for tailwind and esbuild configurations or they will clash between them. By using their names instead of "default" the issue is fixed. This change also changes the behaviour for single apps. To make the formatter happy the commands need to be splitted in several lines. Closes phoenixframework#5631
7fb900a to
40de999
Compare
|
Could the faulty test be flaky? I can't rerun, maybe it would fix it? Also, I am not extremely happy about how I solved the multi-line, any suggestion would be more than welcomed! Thanks 🙏🏽 |
|
💚 💙 💜 💛 ❤️ |
When adding more than one app to your umbrella project you can't use default for tailwind and esbuild configurations or they will clash between them. By using their names instead of "default" the issue is fixed. To make the formatter happy the commands need to be splitted in several lines. Closes phoenixframework#5631
When adding more than one app to your umbrella project you can't use default for tailwind and esbuild configurations or they will clash between them. By using their names instead of "default" the issue is fixed. To make the formatter happy the commands need to be splitted in several lines. Closes phoenixframework#5631
When adding more than one app to your umbrella project you can't use default for tailwind and esbuild configurations or they will clash between them. By using their names instead of "default" the issue is fixed. To make the formatter happy the commands need to be splitted in several lines. Closes phoenixframework#5631
When adding more than one app to your umbrella project you can't use default for tailwind and esbuild configurations or they will clash between them. By using their names instead of "default" the issue is fixed.
Closes #5631
Steps to test it (assuming you are using phoenix mix from source code):
mix phx.new --umbrella /tmp/amix phx.new.web /tmp/a_umbrella/apps/bconfig/runtime.exs&config/dev.exsto change one of the apps to listen in something that isn't4000.cd /tmp/a_umbrella && mix ecto.migrate