mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
639 B
639 B
Blockly Headless
Running Blockly headless is valuable to allow for server side code generation.
The NodeJS program app.headless.js loads Blockly XML from input.xml and outputs python code on stdout.
Prerequisites
Be sure to have these installed on your system:
- NodeJS -- http://nodejs.org/
- NPM -- (Bundled with NodeJS)
- closure-library -- http://developers.google.com/blockly/hacking/closure
Getting Started
- run
npm installin the blockly root directory(in the same location as the package.json). - run
./build.pyto update the compressed files, asbuild.pyhas changed. - run
node app.headless.js