Repository navigation
Update to Elixir 1.20 and Phoenix 1.8 (Tailwind v4 + daisyUI) - #14
Merged
Merged
Conversation
Bump the toolchain to Elixir 1.20.0 / OTP 29.0.2 (Dockerfile, CI workflows, and the mix.exs requirement) and move the deprecated preferred_cli_env into the new `def cli` callback. Upgrade all dependencies to their latest versions, notably: - phoenix 1.7.21 -> 1.8.8 - phoenix_live_view 1.0.17 -> 1.2.3 (drop override + TODO) - gettext 0.26 -> 1.0.2 Drop the now-orphaned castore lock entry (no longer pulled in by Phoenix 1.8) and apply the LiveView 1.2 HEEx formatter change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Migrate the asset pipeline and generated UI to the Phoenix 1.8 defaults: - Tailwind v4 (4.3.0) driven entirely from assets/css/app.css with the daisyUI plugin and light/dark themes; drop assets/tailwind.config.js. - Vendor the daisyUI, daisyUI-theme and heroicons Tailwind plugins; add assets/tsconfig.json. - esbuild 0.25.4 with assets output split into js/ and css/ subdirs. - Replace core_components, layouts and the home page with the 1.8 daisyUI versions; the app layout is now the Layouts.app/1 function component, so layouts/app.html.heex is removed. - web.ex: switch to the 1.8 entrypoint (adds `alias Layouts`, drops the per-controller/live_view layout options, fixes a stale Gettext backend reference). - mix.exs: add the :phoenix_live_view compiler and Phoenix.CodeReloader listener, swap floki -> lazy_html for LiveView tests, bump heroicons to v2.2.0 and esbuild/tailwind requirements. Verified with `mix ci` (compile, credo --strict, format, sobelow, dialyzer, tests) and by booting the server: home page and the css/js assets all return 200 and render the daisyUI UI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Phoenix 1.8's app.css imports `phoenix-colocated/<app>/colocated.css`, which the :phoenix_live_view compiler only generates during `mix compile`. The builder ran `mix assets.deploy` before `mix compile`, so tailwind failed to resolve the colocated import. Reorder the builder stage to match the Phoenix 1.8 generated Dockerfile: add `mix assets.setup` and run `mix compile` before copying assets and running `mix assets.deploy`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the toolchain to Elixir 1.20.0 / OTP 29.0.2, bumps all dependencies to their latest versions (Phoenix 1.7 → 1.8), and adopts the Phoenix 1.8 asset toolchain (Tailwind v4 + daisyUI).
Toolchain
mix.exsrequires~> 1.20; deprecatedpreferred_cli_envmoved to the newdef clicallback.hexpm/elixir:1.20.0-erlang-29.0.2-debian-bookworm-20260610-slim).Dependency bumps (all latest)
castorelock entry; swappedfloki→lazy_html(LiveView 1.2 test backend); heroicons → v2.2.0Phoenix 1.8 asset toolchain
assets/css/app.csswith the daisyUI plugin and light/dark themes; removedassets/tailwind.config.jsassets/tsconfig.jsonjs/andcss/subdirscore_components,layouts, and the home page with the 1.8 daisyUI versions; the app layout is now theLayouts.app/1function component (removedlayouts/app.html.heex)web.exswitched to the 1.8 entrypoint (addsalias Layouts, drops per-controller/live_view layout options, fixes a staleGettextbackend reference)mix.exs: added the:phoenix_live_viewcompiler +Phoenix.CodeReloaderlistenerVerification
mix ciis green: compile--warnings-as-errors,credo --strict,format --check-formatted,sobelow,deps.audit/hex.audit,dialyzer, and tests (5 passed). Booted the server and confirmed the home page and thecss/+js/assets all return 200 and render the daisyUI UI.🤖 Generated with Claude Code