pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
335 stars 39 forks source link

Limeade hot reloading: code hosting backend and pythonrc #66

Open gabriel-v opened 1 year ago

gabriel-v commented 1 year ago

As mentioned in https://github.com/pygame-web/pkg-porting-wasm/issues/5, hot reloading works with limeade.

To make it work for everyone, we should add the functionality in pygbag:

see above issue for details and code samples.

Let me know if you think this functionality would go into pygbag, or if you want to keep the library light and keep this functionality external / user-side.

pmp-p commented 1 year ago

i intended to use websocket + an irc in pygbag to allow remote console + REPL on mobile, code editing inside FS object ( pygbag runtime memory )

limeade and https://github.com/breuleux/jurigged seem both good candidates to achieve the code reloading part.

But before getting in that complex i'd like first a simple auto-repackaging when index.html is reloaded.