From 18610c40376590df8aa86e8f0f9147d5fc0bb808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 3 Mar 2025 16:35:41 +0100 Subject: [PATCH] No need to precompile castore, update tailwind/esbuild deps --- installer/lib/mix/tasks/phx.new.ex | 4 ++-- installer/templates/phx_single/mix.exs | 4 ++-- installer/templates/phx_umbrella/apps/app_name_web/mix.exs | 4 ++-- integration_test/mix.exs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/installer/lib/mix/tasks/phx.new.ex b/installer/lib/mix/tasks/phx.new.ex index eaa09e51ab..ccd4fa8ea1 100644 --- a/installer/lib/mix/tasks/phx.new.ex +++ b/installer/lib/mix/tasks/phx.new.ex @@ -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 = diff --git a/installer/templates/phx_single/mix.exs b/installer/templates/phx_single/mix.exs index f4b9b3090f..3a40f3829b 100644 --- a/installer/templates/phx_single/mix.exs +++ b/installer/templates/phx_single/mix.exs @@ -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", diff --git a/installer/templates/phx_umbrella/apps/app_name_web/mix.exs b/installer/templates/phx_umbrella/apps/app_name_web/mix.exs index 44ffe68ed8..550256b189 100644 --- a/installer/templates/phx_umbrella/apps/app_name_web/mix.exs +++ b/installer/templates/phx_umbrella/apps/app_name_web/mix.exs @@ -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", diff --git a/integration_test/mix.exs b/integration_test/mix.exs index b74d82c322..a63f329ba0 100644 --- a/integration_test/mix.exs +++ b/integration_test/mix.exs @@ -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",