RoyalUr.net icon indicating copy to clipboard operation
RoyalUr.net copied to clipboard

Better system for combining CSS and JS files

Open Sothatsit opened this issue 3 years ago • 2 comments

Currently we define how to create every target CSS and JS file through long, repetitive lists in compilation.json. It would be better to have a system like imports so we could do that within the source files instead of having to do it all in compilation.json.

Sothatsit avatar Mar 03 '21 12:03 Sothatsit

Would this be resolved by https://github.com/Sothatsit/RoyalUrClient/issues/167 ?

Potherca avatar Jan 02 '22 20:01 Potherca

Would this be resolved by #167 ?

I think #167 would definitely be a step towards this, as it seems like it would be a good way to organise it. Although, I'm going to focus on the JavaScript for #167 first, as it's the bigger problem for now. I've made some good progress towards it, although there is still a way to go.

I made the decision to switch to TypeScript, which is taking a lot longer than I expected, unfortunately... However, I think I am making steady progress toward improving the codebase.

My current big goals are:

  • Switch codebase to TypeScript
  • Reduce the current reliance on many global variables
  • Webpack to build all assets (JS/CSS/HTML)
  • Tests!

Sothatsit avatar Apr 18 '22 01:04 Sothatsit