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

logic as standalone npm module #42

Closed
Xiphe opened this issue Apr 4, 2016 · 4 comments
Closed

logic as standalone npm module #42

Xiphe opened this issue Apr 4, 2016 · 4 comments

Comments

@Xiphe
Copy link

Xiphe commented Apr 4, 2016

I really love the idea of building a DSL for state mutations. Since this comes as a standalone application it's not possible to integrate it in existing pattern lab solutions. (And I would really like to do that, instead of reinventing the wheel here ;)

So any plans to distribute the logic as a standalone npm module without the UI?

@Xiphe Xiphe changed the title npm module logic as standalone npm module Apr 4, 2016
@arunoda
Copy link
Member

arunoda commented Apr 4, 2016

What you you mean by the logic? The UI is core part of Storybook.
Could you add more information a bit.

@Xiphe
Copy link
Author

Xiphe commented Apr 4, 2016

We already have an application that provides a visual overview for all our patterns. I do not want to setup another tool that provides the same thing with just another featureset.

here would be an imaginary flow on how to use the logic of this project in my application:

npm install react-storybook --save

// my-stories.js
// ...
import { storiesOf } from '@kadira/storybook';

storiesOf('Button', module)
// register stories...
// navigation.js
// ...
import { storiesOf } from '@kadira/storybook';

storiesOf('Button').forEach(story => /* my implementation of rendering a nav-entry */);
// view.jsx
// ...
import { StoryView } from '@kadira/storybook';

<MyPatternlab>
  <MyNavigation></MyNavigation>
  <StoryView for=currentStory></StoryView>
</MyPatternlab>

This way I could use this as a less opinionated subcomponent in my own solution.

@arunoda
Copy link
Member

arunoda commented Apr 4, 2016

Okay got it. Good idea.

ndelangen pushed a commit that referenced this issue Apr 5, 2017
Remove <div> wrapper from WrapStory
ndelangen pushed a commit that referenced this issue Apr 5, 2017
ndelangen pushed a commit that referenced this issue Apr 11, 2017
ndelangen pushed a commit that referenced this issue Apr 15, 2017
probably it should be --save-dev in README example?
ndelangen pushed a commit that referenced this issue Apr 23, 2017
Update babel-eslint to version 5.0.0 🚀
@ndelangen
Copy link
Member

Storybook stories are extractable see for example how storyshots is doing it:
https://github.com/storybooks/storybook/blob/master/addons/storyshots/src/index.js#L61

ndelangen pushed a commit that referenced this issue Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants