npm i
npm test- 
parseruses HTM to parse JSX-like input into a workable element tree. However, since HTM operates on template strings and we needparseto work on plain strings, we also dangerously useevalto "hydrate" these templates.
- 
generatoroperates onparser's element tree to generate Gutenberg code as a plain string.
- 
evaluatorturns string-based generated code into a usable Preact component. This isn't strictly needed for a simple JSON-to-JS code generator, but is useful for testing the generator. This piece also relies oneval. It assumes that the only environmental requirements to evaluate generated block code are Preact and WP primitives, so it requires those modules before callingeval.
- evalis recklessly used. Consider switching to a sandboxed alternative (e.g. safeEval).
- Poorly tested, naively approached.
- feel free to expand