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.updateRun from mailglass_admin/. After the fetch:
- Review the diff (
git diff assets/vendor/). - Update
CHANGELOG.mdwith the new daisyUI version pin. - 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/4error (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.