Commit build assets to release branches / tags #3749
Replies: 3 comments 11 replies
-
Hey 👋 The files are available for each release. For example 5.0.12: Or older Or latest with no version specified Do you mean commiting the file to git? Or adding it to NPM package? Or...? |
Beta Was this translation helpful? Give feedback.
-
Hey, Noob question: |
Beta Was this translation helpful? Give feedback.
-
A question we might ask ourselves is what sort of problems would committing the bundles to the repo on every release (or at the limit on every change) would bring? Brainstorming:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @saadeghi, thanks for daisyUI!
tldr: Would you be open to a contribution adding some automation (scripting + GitHub action) to have the
daisyui.js
anddaisyui-theme.js
bundles be part of release tags (in addition to being release assets), or be part of the main branch?For over 5 years (since tailwindlabs/heroicons@a64e81b), Tailwind Heroicons include an
optimized
directory generated by a build step.While I don't know the original motivation, it allowed me to contribute a change to the Phoenix framework to track Heroicons by version using Elixir's package manager (
mix
) instead of requiring users of the framework to manually keep track of versions and update vendored copies, and without the need for Node/npm.In the next major release, v1.18, Phoenix is adopting daisyUI for newly generated projects. I would like to provide a similar experience to Heroicons, thus being able to pull versioned daisyUI plugin directly from Git/GitHub instead of managing vendored copies.
I understand this change would mostly benefit users outside of the JS ecosystem where npm/yarn/others is often avoided, thus being useful to a broader audience than Elixir/Phoenix developers. For instance, it would make fetching daisyUI with the
go
CLI trivial, and open up new possibilities for users of the popular Hugo static site generator. Another possible advantage would be having access to any commit/version bundle through GitHub raw files for testing/debugging.I see there's already a build script that generates the release assets, so I believe the proposed changes wouldn't be too overwhelming. But before spending cycles on it, I'd like to hear your thoughts.
Related:
Beta Was this translation helpful? Give feedback.
All reactions