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

Feature/add storybook html #696

Closed
wants to merge 9 commits into from
Closed

Conversation

AndyOGo
Copy link

@AndyOGo AndyOGo commented Nov 28, 2018

Fixes #590

Changes proposed in this pull request:

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@AndyOGo
Copy link
Author

AndyOGo commented Nov 28, 2018

So far works like a charm :)

screen shot 2018-11-28 at 16 46 44

import '@ungap/custom-elements-builtin';
import { storiesOf } from '@storybook/html';

import globalStyles from '../index.scss';
Copy link
Author

Choose a reason for hiding this comment

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

We could either use webpack for this or preview-head.html (though only css not scss)


import globalStyles from '../index.scss';

import './tables';
Copy link
Author

@AndyOGo AndyOGo Nov 28, 2018

Choose a reason for hiding this comment

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

@LucaMele
I think we can fix our grouping issue #683 very very easily with storybook 👍

@@ -0,0 +1,27 @@
import { storiesOf } from '@storybook/html';
Copy link
Author

Choose a reason for hiding this comment

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

We could also have stories in each component folder 🤔

Copy link
Author

Choose a reason for hiding this comment

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

with a *.stories.js extention, like suggested here:
https://storybook.js.org/basics/writing-stories/#loading-stories-dynamically

@AndyOGo AndyOGo force-pushed the feature/add-storybook-html branch 2 times, most recently from d73292d to 80efc6f Compare December 4, 2018 17:28
@LucaMele LucaMele closed this Apr 12, 2019
@jackblackCH jackblackCH deleted the feature/add-storybook-html branch May 13, 2019 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

We should have a better overview to display components
2 participants