mikaelvesavuori / figmagic

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
https://docs.figmagic.com
MIT License
814 stars 73 forks source link

Feature request: ignore tokens? #52

Closed flo-sch closed 4 years ago

flo-sch commented 4 years ago

Figmagic takes options to disable the graphics and elements sync:

{
  "syncGraphics": false,
  "syncElements": false
}

Would it be possible to have a similar flag for tokens?

Context: I am using Figmagic (same Figma document) in 3 repositories:

I would just ensure tokens are not fetched unintentionally from within the "application" projects, since I want those to import the centralised tokens.

Does adding such a flag make sense?

I could also add tokens to .gitignore to make sure they would never be commited, but I think a flag could be more appropriate?

flo-sch commented 4 years ago

NOTE: I am looking at a way to package icons as well (which would remove the need for that feature), just haven't found a nice way yet to make that work

mikaelvesavuori commented 4 years ago

I will add this to the backlog and deal with in the on-going version 4.0 work. ETA for Figmagic 4.0 is in the coming 2-4 weeks.

mikaelvesavuori commented 4 years ago

This is implemented in version 4.