gbdev / rgbds-live

A live Gameboy programming environment in the browser, allowing for realtime assembly programming for the gameboy.
https://gbdev.io/rgbds-live/
MIT License
36 stars 8 forks source link

Introduce Vite #19

Closed surma closed 11 months ago

surma commented 11 months ago

This PR introduces Vite as the build system for RGBDS Live.

I tried to do minimal changes to the code, so currently there’s still lots of globals and stuff, but the PR got big enough as it is. This already does some nice optimizations in that it bundles all the JavaScript and CSS files and minifies them, which should make the site load faster.

These are the changes introduced by this PR:

surma commented 11 months ago

Calling ./build.sh is still the right thing to do, exactly so that CI keeps working. Is it broken?

avivace commented 11 months ago

build.sh is not called at all atm in the CI, as all the final files would end up in the www folder anyway, so we need another step after the wasm builds to call build.sh

edit: I added it in https://github.com/gbdev/rgbds-live/pull/19/commits/d07f634cdc45b1cfd2c3125e1991863375ba36c7