Hi all,
working on updating of Ruby on Rails to version 8.1, I need a help with bundled JS. The issues is that originally, rubygem-actiontext used to bundle Trix editor. We treated it as a bundled dependency:
https://src.fedoraproject.org/rpms/rubygem-actiontext/blob/daaba35292a1a7d68...
and the functionality was (presumably) covered by the actiontext test suite. However, upstream has decided to split Trix into independent gem. The gem is now part of the Trix code base:
https://github.com/basecamp/trix/tree/main/action_text-trix
and it is more or less just empty shell containing 500 kB Rollup compiled Trix JS. The question is how much I should care about?
In ideal world, I should create nodejs-trix package, there should also be js- subpackage and possibly also webassets package, because ultimately Trix will be used in browser. But that all seems to be a lot of hustle for something which I am afraid will (likely) be used by (only) rubygem-actiontext. So what is the right balance?
It is clear that I have to create the rubygem-action_text-trix package.
1) And I could still treat the Trix there as a bundled JS.
2) I can create at minimum the nodejs-trix (see attachment), which actually allows to execute the upstream test suite.
3) Maybe the nodejs-trix could be subpackage of rubygem-action_text-trix.
4) Only the relevant Node.js package bits can be used to make sure the license / .js are correct and test suite executed without even creating the nodejs- subpackage at all.
Any thoughts? Does e.g. anybody see any usage of Trix beyond Ruby on Rails?
BTW I suspect that in the future, Trix might be replaced by Lexxy in Rails:
https://dev.37signals.com/announcing-lexxy-a-new-rich-text-editor-for-rails/
https://github.com/basecamp/lexxy/
Thanks
Vít