Open tong opened 1 year ago
This would require NPM in order to download and initialize the Node dependencies, correct? Kha/armsdk doesn't ship with NPM, only Node, so it would need to be either downloaded separately (which is more work / dependencies), or we ship NPM with the armsdk.
Frankly, I support, but also disagree with these approaches.
I don't think bundling npm with the sdk is a good idea.
Currently i am using the armory_electron_runtime as armory Subproject which works fine.
Maybe we can use the khafile.js (when used as Subproject) to check for dependencies, give some instructions or even auto install npm.
How about adding a electron application as a (debug) runtime for html5, like kode is doing it for vscode? This would make some things a lot easier:
Here https://github.com/tong/armory_html5_runtime is a quick hack to test this. Since the appliction uses haxe/js for it's main process one could easily extend it to add custom functionality.