benkeen/generatedata

Find solution for Data Type generation code to work in both web workers + node

Closed this issue · 1 comments

  • rename all DT workers to [pluginname]-worker.ts
  • group all generic generation code in [pluginname]-generate.ts, and maybe export the node-friendly generate() method through the main DT bundle (?)

Turns out this is pretty straightforward. Just need the worker files to pass the global utils worker content to a separate re-usable generate method in each plugin. That can then be re-used by the node code.