A Scratch to Javascript compiler. Note: this was very aspirational but unfortunately I literally do not care about this anymore. Feel free to work on it and open a pr or whatever, I'll happily give you commit rights just open an issue :)
git clone https://github.com/elimerl/scratch2js
cd scratch2js
yarn install
should install dependencies.
To build, run yarn build
.
A tool that is very useful is astexplorer.net; it lets you play with ESTree syntax trees, which is helpful in generating the code.
Uses the util
module from LLK/scratch-vm.