Hi. I run my specs (when I’m developing) pretty much the same way that they are run within the app when you choose Help > Software Development Kit > Run Specs. The only difference being that I don’t run them directly in the FoldingText app… instead I have a we browser pointed at the specs html file and it reloads anytime I change a file.
FoldingText uses requirejs for modules.
I use node for various dev tasks, but it’s not being used in the FoldingText app runtime. That’s all just running in a WebView and bridged to native for things like file access.
If you are doing a plugin probably best place to start is look at examples in: