tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.36k stars 196 forks source link

Sync providers: extract into its own folder #3000

Open cuserox opened 3 months ago

cuserox commented 3 months ago

Context 📝

The implementation of sync providers in the plugin is repetitive and can be optimized. The aim of this task is to gather together as much of the UI & logic into its own realm, to set a base that allows us to publish as an independent package that can be flexible enough for future providers.

Acceptance Criteria 🛠️

🎯 A package that lets users create/choose a sync provider, and then have a button that Import variables which would basically just read local variables from Figma, and push those to the repository. So in effect we'd have all of these parts in the Figma plugin already, but we want those to be part of a new plugin that does just that. As in it'd be one-directional for now (pushing to git), but eventually would do both.

### Available providers to extract, ordered by popularity (https://eu.mixpanel.com/project/2151665/view/306667/app/insights/?discover=1#report/27296141)
- [ ] https://github.com/tokens-studio/figma-plugin/issues/3112
- [ ] Extract GitLab into `/sync-providers`
- [ ] Extract ADO into `/sync-providers`
- [ ] Extract URL into `sync-providers`
- [ ] Extract JSONBin into `/sync-providers`
- [ ] Extract Bitbucket into `/sync-providers`
- [ ] Extract Supernova into `/sync-providers`
- [ ] Extract Generic Versioned Storage into `/sync-providers`
- [ ] Extract Tokens Studio into `/sync-providers`
cuserox commented 2 months ago

⚠️ WIP branch: https://github.com/tokens-studio/figma-plugin/tree/feat/3000-extract-sync-providers