Compile Scratch programs through terminal
- Clone this repo
- Go to folder and run
npm install .
node scratch.js <sb3 file>(Type-hfor help)- To use the execution file globally, run
npm install . -g. After that, you can usescratch <sb3 file>
node test.jsto run all tests (Type-hfor help).- If you don't want to run all tests, do
node test.js -p [project1] [project2] ...
- Follow the installation above.
- Inside judge configuration (yml file), add two links:
- scratch: link to scratch executable (eg, /usr/bin/scratch)
- scat_home: link to this folder