A patched version of scratch-blocks that includes KIPR functions and is compatible with library-style packaging. A CD step automatically builds and deploys this repository under the NPM package name @kipr/scratch-blocks.
- Generate SWIG XML bindings for libwallaby/libkipr- This step gives us a machine-readable set of function defintions fromlibkipr.
- Convert the SWIG XML into Blockly JS definitions - We write these out to scratch-blocks/blocks_vertical.
- Create a Default Toolbox - A default toolbox is generated from default_toolbox.jsonin conjuction with the SWIG XML definitions. This file is written out as a JS/XML blob inscratch-blocks/blocks_vertical.
- Remove unsupported Scratch blocks - We don't need (and don't support) functions like "Wait for Mouse Click".
- Build scratch-blocks
- Move compressed JS into the NPM package template @kipr/scratch-blocks
- Publish NPM package to private registry.
git submodule init --update
python3 build.py