Skip to content

Commit

Permalink
Make formatter happy by splitting lines
Browse files Browse the repository at this point in the history
The generated mix.exs were failing the format step in CI because the lines
where too long, by splitting the commands in different lines the formatter will
be ok with it.
  • Loading branch information
agonzalezro committed Dec 30, 2023
1 parent 9c89cc5 commit 7fb900a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion installer/templates/phx_single/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ defmodule <%= @app_module %>.MixProject do
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]<% end %><%= if @asset_builders != [] do %>,
"assets.setup": <%= inspect Enum.map(@asset_builders, &"#{&1}.install --if-missing") %>,
"assets.build": <%= inspect Enum.map(@asset_builders, &"#{&1} #{@app_name}") %>,
"assets.deploy": <%= inspect Enum.map(@asset_builders, &"#{&1} #{@app_name} --minify") ++ ["phx.digest"] %><% end %>
"assets.deploy": [
<%= Enum.map(@asset_builders, &" \"#{&1} #{@app_name} --minify\",\n") ++ [" \"phx.digest\""] %>
]<% end %>
]
end
end
4 changes: 3 additions & 1 deletion installer/templates/phx_umbrella/apps/app_name_web/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ defmodule <%= @web_namespace %>.MixProject do
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]<% end %><%= if @asset_builders != [] do %>,
"assets.setup": <%= inspect Enum.map(@asset_builders, &"#{&1}.install --if-missing") %>,
"assets.build": <%= inspect Enum.map(@asset_builders, &"#{&1} #{@web_app_name}") %>,
"assets.deploy": <%= inspect Enum.map(@asset_builders, &"#{&1} #{@web_app_name} --minify") ++ ["phx.digest"] %><% end %>
"assets.deploy": [
<%= Enum.map(@asset_builders, &" \"#{&1} #{@web_app_name} --minify\",\n") ++ [" \"phx.digest\""] %>
]<% end %>
]
end
end

0 comments on commit 7fb900a

Please sign in to comment.