The goal of this page is to explain how to have blockly environment to update agocontrol blockly source code.
svn checkout https://closure-library.googlecode.com/svn/trunk/ closure-library-read-only
svn checkout http://blockly.googlecode.com/svn/trunk/ static
svn checkout https://github.com/espertus/blockly-lua/trunk blockly-lua
cp -a ../blockly-lua/generators/lua generators
cp -a ../blockly-lua/generators/lua.js generators/
wget -O blocks/agocontrol.js "http://www.agocontrol.com/trac/browser/agocontrol.git/devices/blockly/blocks/agocontrol.js"
wget -O generators/lua/agocontrol.js "http://www.agocontrol.com/trac/browser/agocontrol.git/devices/blockly/lua/agocontrol.js"
Some modules need to be patched:
patch -p1 < patch_blockly.patch
patch -p1 < patch_lua.patch
The only files you need to modify are:
To create new blocks, the block factory available file:///<root>/static/apps/blockfactory/index.html may be really useful. (Prefer using local block factory than online one because online is not always up to date!)
First of all you need to launch your browser with some parameters:
After validating your file modifications, you need to compile blockly before committing your final release. The compilation tool is directly provided by blockly and require python installed:
This compilation generates compressed files:
/!\ too much compilation during a day will ban you from google server until the end of the day (compilation are done remotely)
If everything went fine, you need to commit 3 new files to agocontrol git repository: