bernaferrari / FigmaToCode

Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI.
https://www.figma.com/community/plugin/842128343887142055
GNU General Public License v3.0
3.58k stars 262 forks source link

CLI command line #62

Open bevrard opened 2 years ago

bevrard commented 2 years ago

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.

bernaferrari commented 2 years ago

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.

bevrard commented 2 years ago

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.