FigmaToCode icon indicating copy to clipboard operation
FigmaToCode copied to clipboard

CLI command line

Open bevrard opened this issue 2 years ago • 2 comments

Your plugin is impressive ! Thank you.

Could you guide us how we could make it work as a CLI command line similar to this tool ? https://github.com/marcomontalbano/figma-export

We would like to integrate the retrieve of the CSS in our CI CD process.

Thanks in advance for your help.

bevrard avatar Jun 29 '22 07:06 bevrard

Maybe.. lol

It doesn't seem trivial, however. Can you explain more how your CI/CD process works? I'm curious. Maybe we can think of something better together.

bernaferrari avatar Jun 29 '22 17:06 bernaferrari

We have a components'library (in Angular) that is documented with Storybook. Our components are then uploaded to figma with a manual action.

We would like to plan every morning to retrieve the changes from the designer in figma.

Currently in our company the CI/CD is managed via Jenkins. To do that, we could like to add a script (a CLI similar to figma export), that could get an html/CSS in the same quality that your plugin could provide 🙂.

As we have a figma file per component, we would be able to retrieve the html and mainly the CSS that would be aligned with our Angular components.

In that situation, the change from the designer would be "automatically" applied to the application.

bevrard avatar Jun 29 '22 19:06 bevrard