Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invert plugin (put mapping in storybook files) #10

Open
alexkrolick opened this issue Mar 18, 2020 · 0 comments
Open

invert plugin (put mapping in storybook files) #10

alexkrolick opened this issue Mar 18, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@alexkrolick
Copy link

alexkrolick commented Mar 18, 2020

It's pretty tedious to map component names into the zeplin config file. One nice thing about storybook compared to styleguidist is it doesn't have a config file that maps components to stories - it just detects all the *.stories.(ts|js|mdx) files and creates the storybook. It would be cool if Zeplin could plug into individual storybook configs, so when you update that, you can sync with Zeplin. It could also create bi-directional links from Storybook to Zeplin instead of just the other way (assuming you're in a private repo, should be disable-able if not).

// button.stories.js
export default {
    title: 'Components|Button',
    component: Button,
    parameters: {
        notes,
+       zeplinNames: ['Button/*'],        
    },
};
@yuqu yuqu added the enhancement New feature or request label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants