Skip to content

Update to Elixir 1.20 and Phoenix 1.8 (Tailwind v4 + daisyUI) - #14

Merged
anderkonzen merged 4 commits into
mainfrom
chore/update-elixir-1.20-and-libs
Jun 19, 2026
Merged

anderkonzen merged 4 commits into
mainfrom
chore/update-elixir-1.20-and-libs

Conversation

@anderkonzen

Copy link
Copy Markdown
Owner

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.exs requires ~> 1.20; deprecated preferred_cli_env moved to the new def cli callback.
  • Dockerfile + all CI workflows pinned to Elixir 1.20.0 / OTP 29.0.2 (base image hexpm/elixir:1.20.0-erlang-29.0.2-debian-bookworm-20260610-slim).

Dependency bumps (all latest)

  • phoenix 1.7.21 → 1.8.8, phoenix_live_view 1.0.17 → 1.2.3, gettext 0.26 → 1.0.2
  • bandit, swoosh, finch, postgrex, ecto(_sql), phoenix_ecto, phoenix_html, tailwind, credo, sobelow, dialyxir, … all bumped
  • dropped the orphaned castore lock entry; swapped floki → lazy_html (LiveView 1.2 test backend); heroicons → v2.2.0

Phoenix 1.8 asset toolchain

  • Tailwind v4 driven from assets/css/app.css with the daisyUI plugin and light/dark themes; removed assets/tailwind.config.js
  • Vendored daisyUI / daisyUI-theme / heroicons Tailwind plugins; added assets/tsconfig.json
  • esbuild 0.25.4; assets output split into js/ and css/ subdirs
  • Replaced core_components, layouts, and the home page with the 1.8 daisyUI versions; the app layout is now the Layouts.app/1 function component (removed layouts/app.html.heex)
  • web.ex switched to the 1.8 entrypoint (adds alias Layouts, drops per-controller/live_view layout options, fixes a stale Gettext backend reference)
  • mix.exs: added the :phoenix_live_view compiler + Phoenix.CodeReloader listener

Note: the app's visual appearance changes to the Phoenix 1.8 daisyUI look. The old brand: #FD4F00 color (from tailwind.config.js) is replaced by daisyUI themes defined in app.css.

Verification

mix ci is 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 the css/+js/ assets all return 200 and render the daisyUI UI.

🤖 Generated with Claude Code

anderkonzen and others added 4 commits June 18, 2026 21:43
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>
@anderkonzen
anderkonzen merged commit f15c235 into main Jun 19, 2026
9 checks passed
@anderkonzen
anderkonzen deleted the chore/update-elixir-1.20-and-libs branch June 19, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant