1.0.1 • Published 2 years ago
ergoblocks v1.0.1
Blockly Components for ErgoScript
Usge
import * as Blockly from "blockly/core";
import { ergoScriptGenerator, blocks } from "ergoblocks";
Blockly.common.defineBlocks(
Blockly.common.createBlockDefinitionsFromJsonArray(blocks)
);
// Your Blockly setup code hereLive Demo
Checkout ErgoScript Playground for a live demo.
Minimal Integration example
- Clone this repository
git clone git@github.com:SavonarolaLabs/blockly-ergoscript.gitto your own machine. - Run
cd blockly-ergoscriptto navigate inside project folder. - Run
npm installto install the required dependencies. - Run
npm run startto run the development server and see the app in action. - If you make any changes to the source code, just refresh the browser while the server is running to see them.