Skip to content

Conversation

@protoEvangelion
Copy link
Contributor

Adds storybook. You can run with npm run dev. You will see some babel warnings. I tried for a while to resolve it but can't. Will try again in the future.

This leverages a github action to run npm run build, commits, & pushes to the gh-pages branch which is hosted here: https://silinternational.github.io/ui-components/index.html

We can also automatically deploy to npm using this approach.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 19, 2021

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3f4079a
Status:🚫  Build failed.

View logs

@hobbitronics hobbitronics requested a review from briskt May 19, 2021 14:09
/>

<Story
name="Disabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have to write this all up or does storybook generate it from our components? Some of the stories like 'Disabled' might not be essential as they can be set by the prop on the other stories.

Copy link
Contributor

@hobbitronics hobbitronics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work Ryan. I can't wait to see what other benefits we can gain from this like documentation generation.

Copy link
Contributor

@briskt briskt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's all new to me, so I don't have much to add to the review. Looks encouraging, though!

@hobbitronics hobbitronics merged commit 886c497 into main May 20, 2021
@hobbitronics hobbitronics deleted the feature/storybook branch December 16, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants