UNPKG

@webwriter/block-based-code

Version:

Write block-based code (e.g. Scratch) and run it.

29 lines (22 loc) 1.31 kB
# WebWriter Blocks Widget The blocks Widget brings block based programming to [WebWriter](https://webwriter.app). The widget is based on the [Blockly](https://developers.google.com/blockly) library and is heavily inspired by the [Scratch](https://scratch.mit.edu/) project. Currently, the only available stage type is a simple canvas, but more stages can be added in the future. The stage is controlled by the blocks that are placed in the editor. [<img alt="Built with Blockly" src="https://developers.google.com/static/blockly/images/logos/built-with-blockly-badge-white.png" height="48">](https://g.co/dev/blockly) &nbsp;&nbsp;&nbsp;&nbsp; [<img alt="Built with PixiJS" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.png" height="48">](https://pixijs.com) ## Installation This Widget needs to be installed through WebWriter. It should be available in the widget list. ## Usage The widget offers an example exercise. Apart from that, the widget should be self-explanatory. ## Development The development of this widget should be done in WebWriter. Instead of installing the widget, you can use the development mode of WebWriter to import the Widget from your local drive. ## Release To release a new version of the widget, run the following command: ```bash npm run release ```