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

Add storybook in the project #1158

Merged
merged 6 commits into from
Apr 9, 2020
Merged

Conversation

thayannevls
Copy link
Contributor

@thayannevls thayannevls commented Apr 8, 2020

What is the purpose of this pull request?

Add storybook configurations, addons, stories examples and the documentation about it.

Addons configured here:

What problem is this solving?

We need an enviroment with hot-loading and that builds components in isolation to help us develop our components.

How should this be manually tested?

yarn && yarn storybook and then visit localhost:6006 in your browser.

To Do

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

@thayannevls thayannevls requested a review from a team April 8, 2020 19:33
@thayannevls thayannevls requested a review from a team as a code owner April 8, 2020 19:33
@thayannevls thayannevls force-pushed the chore/add-storybook branch 2 times, most recently from aaeb41c to f125265 Compare April 8, 2020 19:46
Copy link
Member

@emersonlaurentino emersonlaurentino left a comment

Choose a reason for hiding this comment

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

make sure eslint + prettier are installed and configured correctly.

.github/CONTRIBUTING.md Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE.md Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE.md Show resolved Hide resolved
.storybook/manager.js Outdated Show resolved Hide resolved
.storybook/manager.js Outdated Show resolved Hide resolved
react/components/Button/button.stories.tsx Outdated Show resolved Hide resolved
react/tsconfig.json Outdated Show resolved Hide resolved
react/components/Tooltip/tooltip.stories.tsx Outdated Show resolved Hide resolved
react/components/Tooltip/tooltip.stories.tsx Outdated Show resolved Hide resolved
react/components/Tooltip/tooltip.stories.tsx Outdated Show resolved Hide resolved
react/components/Tooltip/tooltip.stories.tsx Show resolved Hide resolved
react/components/Tooltip/tooltip.stories.tsx Outdated Show resolved Hide resolved
delay={number('Delay(ms)', 0)}
fallbackPosition={select('Fallback Position', positions, 'right')}
>
<Button>Button</Button>
Copy link
Member

Choose a reason for hiding this comment

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

here is the typescript error that I couldn't solve yet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 I think I solved, can you check?

@thayannevls
Copy link
Contributor Author

@emersonlaurentino eslint+prettier was configured but my vscode didn't checked the new files that's why I didn't notice the errors 😅 I'm going to fix now

@emersonlaurentino emersonlaurentino merged commit c5612ee into features Apr 9, 2020
@emersonlaurentino emersonlaurentino deleted the chore/add-storybook branch April 9, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants