Open dfabulich opened 9 months ago
The compiler compile.js
is designed to work on the web, so it should be possible to fix this, at least in principle.
Thanks @dfabulich. Currently the web version of CSIDE is entirely dependent on Dropbox to provide a "File system", which makes it tricky to integrate with compile.js and other scripts. I just opened #154 in response to this. That covers implementing support for the File API which I believe would be a prerequisite to supporting compile.js in the web.
If that can be done, then yes, this is absolutely something I'd love to add to the Web variant.
EDIT: In theory there's no reason we can't compile content from Dropbox as well, but I think that would require modifications to compile.js itself to make it more flexible about where the data for the game comes from.
I'm open to any changes you'd like to make to compile.js. Currently it assumes that there will be a slurpFile function on the global scope that returns file contents; I think the IDE should be able to provide its own implementation of slurpFile that just returns the raw data from Dropbox.
https://choicescriptide.github.io/web/
Right-click on the project name there; you'll see a context menu, including an "Export" section, but it only includes one item, "All scenes to folder"
In the app, that menu includes another option, "Compiled game"