figma / code-snippet-editor-plugin

Translate component variants, properties, and more into dynamic code snippets for your design system.
https://www.figma.com/community/plugin/1311777988952403297/code-snippet-editor
MIT License
128 stars 11 forks source link

Refactoring into TypeScript, cleaning up, and adding significant code documentation #11

Closed jake-figma closed 8 months ago

jake-figma commented 8 months ago

Refactoring the codebase to use TypeScript.

Now uses npm and has only two dependencies: typescript, esbuild.

The UI code is not compiled. It is still raw JS inline inside of HTML files.

Prioritizing simplicity here so that it is easily clone-able and extensible.

Plugin code split between a few files in src: