knok-healthcare / figma-assets-to-github-plugin

A Figma plugin to export all assets inside a Figma board to a Github pull request with ease
https://www.figma.com/community/plugin/1250083994048709468/Figma-assets-to-Github-plugin
MIT License
3 stars 0 forks source link

feature: allow to define variant properties to exclude from turning into props #4

Closed carlosdevpereira closed 1 year ago

carlosdevpereira commented 1 year ago

Description

Currently the plugin automatically checks which "variant properties" that each figma asset defines and tries to convert those variant properties into props (when generating Vue components). The only "hammered" exclusion for now is the variant property called "Name".

Acceptance Criteria


Relates with: #5

carlosdevpereira commented 1 year ago

Implemented in b0d3054

Note: Instead of hammering a filter to exclude property "Name", the plugin is excluding every prop that does not have multiple possible values. This works in a "component based" approach and since "Name" in most scenarios does not have multiple possible values for the same component it get's excluded.