zeplin / connected-components-docs

Documentation for Connected Components
https://zpl.io/connected-components
142 stars 21 forks source link

Use id instead of name to declare zeplin components #34

Closed sayinserdar closed 3 years ago

sayinserdar commented 3 years ago

It would be really nice if an identifier array is used instead of zeplinNames array. Our team decided to change its naming convention and we have to change each components' name in our components.json. It would be smoother if it's based on id. :clinking_glasses:

yuqu commented 3 years ago

Hey, thanks for the suggestion.

We have started to support component ids after @zeplin/cli@1.1.0 release. Documentation is on review now, will be published soon. In the meantime, you can access to the branch to see latest documentation.

Zeplin VSCode Extension is also going to be updated to support zeplinIds field very soon, you can track it on https://github.com/zeplin/vscode-extension/pull/112. There will be a command named Migrate Zeplin Component names to ids in configuration on the extension to convert all existing zeplinNames to their correspondent ids, I suggest you to use that command for a seamless migration.

PoisonousJohn commented 3 years ago

@yuqu hi. I see that you've added zeplinIds key to the configuration file, and it seems to be working via the CLI. Yet VSCode extension doesn't work with it, it does not suggest any action for this key

image

yuqu commented 3 years ago

@PoisonousJohn Hi, we just published a new release for VS Code Extension to address zeplinIds issues, could you update it and try again?

yuqu commented 3 years ago

@sayinserdar As I mentinoned on my comment above, VS Code Extension now supports using component IDs instead of components names on Connected Components configuration file. Check it out on the revamped documentation.

You can use migrate command on the command palette to convert all existing zeplinNames to corresponding zeplinIds.