xbmc / chorus2

Official Kodi Web Interface
GNU General Public License v2.0
343 stars 116 forks source link

Draft: Decaffeinate & drop Ruby, get CI running again #584

Open max-te opened 8 months ago

max-te commented 8 months ago

I took a shot at #372, and this is the result of that. I applied decaffeinate and brought the whole build system to a working state again. From my limited testing on my local Kodi box and through the BrowserSync devmode everything seems to be working fine. This should bring us in a position where it is easier to move the project forward.

This port still needs to be followed-up by a cleanup pass over all the converted files, removing the TODO comments when done. Also, eco still uses coffeescript for the jst files.

The JS source code also still uses globals and no import/export, the coffee compile task was replaced by a simple concat. Eventually, this could be replaced by a proper bundler like esbuild / webpack.

To get the scss build working again, I replaced Ruby Sass by Dart Sass. The sass dependencies are now loaded via npm, I looked for equivalent replacements for the used packages and so far they are working out. (In hindsight it would have been easier to do this before transforming the coffeescript files)

Any thoughts on the direction this is taking?