Skip to content

Commit

Permalink
No need to precompile castore, update tailwind/esbuild deps
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Mar 3, 2025
1 parent 853f824 commit 18610c4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions installer/lib/mix/tasks/phx.new.ex
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ defmodule Mix.Tasks.Phx.New do
Mix.shell().info([:green, "* running ", :reset, "mix assets.setup"])

# First compile only builders so we can install in parallel
# TODO: Once we require Erlang/OTP 28, castore and jason may no longer be required
cmd(project, "mix deps.compile castore jason #{Enum.join(builders, " ")}", log: false)
# TODO: Once we require Erlang/OTP 28, jason may no longer be required
cmd(project, "mix deps.compile jason #{Enum.join(builders, " ")}", log: false)
end

tasks =
Expand Down
4 changes: 2 additions & 2 deletions installer/templates/phx_single/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ defmodule <%= @app_module %>.MixProject do
{:phoenix_live_view, "~> 1.0.0"},
{:floki, ">= 0.30.0", only: :test},<% end %><%= if @dashboard do %>
{:phoenix_live_dashboard, "~> 0.8.3"},<% end %><%= if @javascript do %>
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},<% end %><%= if @css do %>
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
{:esbuild, "~> 0.9", runtime: Mix.env() == :dev},<% end %><%= if @css do %>
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.1.1",
Expand Down
4 changes: 2 additions & 2 deletions installer/templates/phx_umbrella/apps/app_name_web/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ defmodule <%= @web_namespace %>.MixProject do
{:phoenix_live_view, "~> 1.0.0"},
{:floki, ">= 0.30.0", only: :test},<% end %><%= if @dashboard do %>
{:phoenix_live_dashboard, "~> 0.8.3"},<% end %><%= if @javascript do %>
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},<% end %><%= if @css do %>
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
{:esbuild, "~> 0.9", runtime: Mix.env() == :dev},<% end %><%= if @css do %>
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion integration_test/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defmodule Phoenix.Integration.MixProject do
{:bcrypt_elixir, "~> 3.0"},
{:argon2_elixir, "~> 4.0"},
{:pbkdf2_elixir, "~> 2.0"},
{:tailwind, "~> 0.2.0"},
{:tailwind, "~> 0.2"},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.1.1",
Expand Down

0 comments on commit 18610c4

Please sign in to comment.