mix mailglass_admin.daisyui.update (MailglassAdmin v1.0.0)

Copy Markdown View Source

Curls the latest daisyui.js + daisyui-theme.js from the daisyUI GitHub releases page and writes them to assets/vendor/. Prepends a pin-comment with today's date + the source URL for CHANGELOG traceability per CONTEXT D-22.

Usage

mix mailglass_admin.daisyui.update

Run from mailglass_admin/. After the fetch:

  1. Review the diff (git diff assets/vendor/).
  2. Update CHANGELOG.md with the new daisyUI version pin.
  3. Commit.

Supply-chain discipline: this is the single authorized path for refreshing vendored daisyUI. Dependabot does NOT cover vendored files; maintainer review on each diff is the explicit control.

Failures

Exits via Mix.raise/1 on:

  • HTTP status != 200 on either fetch.
  • :httpc.request/4 error (DNS, connection refused, etc.).

The assets/vendor/*.js files on disk are left untouched if the fetch fails — a half-written vendor tree would break the next mix mailglass_admin.assets.build invocation.