siderolabs / omni

SaaS-simple deployment of Kubernetes - on your own hardware.
Other
395 stars 23 forks source link

chore: migrate to Vite and Bun to build the frontend #326

Closed Unix4ever closed 3 weeks ago

Unix4ever commented 3 weeks ago

Dropped some dependencies which no longer worked:

Dropped the code that sets up monaco in main.ts in favor of Vite monaco plugin that does that for you.

Updated monaco-yaml as the old version didn't work with Vite.

Switched from Jest to bun:test.

Use TypeScript in the tailwind config, as it imports colors.ts now. Had to use TypeScript for colors as Vite can't import CommonJS modules.

Add eslint linter to the lint dependencies, enable a bit more linters and fix all detected errors.

Fixes: https://github.com/siderolabs/omni/issues/294

Unix4ever commented 3 weeks ago

I personally love the -34k lines

Do we need to have a matching kres update?

yep, will create the PR for it now

Unix4ever commented 3 weeks ago

I'll cut 0.38.0-alpha.0 with this change and roll it out to sandbox. We need to properly test that no UI features were broken after this change, as I've basically recreated vue project from scratch.

Unix4ever commented 3 weeks ago

/m