This requires further research but I see it working as:
- Create new file with
.blockly.json file ending
- When you click the file it opens Monaco (raw text) and Blockly's visual editor in their own tabs
- When you click save it serializes the blockly instance and overrides the original file
- To run the blockly script you need to convert the blockly instance into a JS file (similar to serialization) and save that alongside the
.blockly.json file as it's own .blockly.js autogenerated file.
- It might be possible to do this more cleanly if we make a special "blockly mode" version of the playground that hides this from the user and does it all in the background.
https://developers.google.com/blockly
This requires further research but I see it working as:
.blockly.jsonfile ending.blockly.jsonfile as it's own.blockly.jsautogenerated file.https://developers.google.com/blockly