Thanks beka for your quick response ❤️.
My Use case:
I have a library in python, which consists of helpful functions.
I wrote some custom generators to convert those functions into blocks and store them in my database(JSON Format - Block definitions).
Every time i make changes to that functions or add new functions to that python library, i run my generators and add those blocks to my database.
Current Approach
Since its a JSON array to define blocks, making that api call and adding to a file and adding the code generators(Javascript Functions) to one file for the corresponding blocks and publishing the Blockly app. So if i add new blocks to the database, i have rebuild my app and publish it.
Desired Approach
Have a Api endpoint, get the blocks array, and code generators array and make them work. No need to make some janky local file rewrites, or have some external dependencies. Everytime i update my database, magically blocks are updated. So version releases or complex app rebuilds.
PS
Is it possible to write a plugin to extend JSON block definition to generate code through it. Just a thought 🤭
Something like