Currently for the majority of the apps we have, we include
create-xdc.sh, the web demo version of
eruda.js in the source code of the apps (see hextris, for example). It’s somewhat like copy-pasting React source code to your React project (which is bad).
We also have this more advanced template GitHub - webxdc/webxdc-vite: A minimalist Vite template for Webxdc development, but it also includes
webxdc.js as a source-code file, while
eruda.js is a
- Maybe make it common practice to use
create-xdc.shand the web version of
webxdc.jsas a git submodule. Seems like the simplest and the least commitment-requiring solution.
- Or just a separate folder (like a binary that you put in
- Or integrate it in the
webxdc-devtool. A thing to consider is whether we want to cram everything that has to do with webxdc development in this one repo. For example, does the web demo version of
webxdc.jshave enough to do with this tool, or should it be something separate?
- Or make it an OS package (
apt-get install package-webxdc-app).
Need to update the docs when we come up with a solution.