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

Publishing component library as NPM package #67

Closed
Prasanna-Poonacha opened this issue Dec 20, 2018 · 11 comments
Closed

Publishing component library as NPM package #67

Prasanna-Poonacha opened this issue Dec 20, 2018 · 11 comments

Comments

@Prasanna-Poonacha
Copy link

The whole concept of storybook, component library and using in the application is very cool. I was looking at something which could be used in other projects too as a npm package and use the components from the component library. Is there a way to do it ?

@icarlossz
Copy link
Contributor

Yes, it can. There a lot of medium articles about it, I think its a good idea put something about it in learnstorybook.

@Prasanna-Poonacha
Copy link
Author

I did see lot of posts in medium. Different ways. It really makes sense to put in learnstorybook and relates really well. I request to put something. I am following react learnstorybook. Every looks really great. But I want to publish and use it in other projects too.

@icarlossz
Copy link
Contributor

icarlossz commented Dec 20, 2018

In my work we have a storybook library published in npm for all the projects that follows the same styleguide, you can find how to do it in any medium article like I told you. And there should definitely be something for that in this tutorial.

@Prasanna-Poonacha
Copy link
Author

Prasanna-Poonacha commented Dec 20, 2018

Sure. Which job ? Could you share me the URL ?

@icarlossz
Copy link
Contributor

I work at Walmart, all that stuff is private, sorry.

@Prasanna-Poonacha
Copy link
Author

I get it. Thank you :)

@domyen
Copy link
Member

domyen commented Dec 20, 2018

That'd be an awesome resource for the Storybook community!

Publishing to NPM is a bit more advanced than what people just getting started with Storybook are looking for so it probably doesn't belong in this edition of LearnStorybook.com. Typically, the practical time for a team to publish a library is when other product teams start using it.

Perhaps it's time for a sequel to LearnStorybook that covers advanced topics for professional teams. One that goes over the production-grade workflows used by mature teams. I have some ideas, would you be interested in helping out @icarlossz @Prasanna-Poonacha?

@icarlossz
Copy link
Contributor

I'm in @domyen

@Prasanna-Poonacha
Copy link
Author

Sure. I am in too @domyen :)

@Prasanna-Poonacha
Copy link
Author

Prasanna-Poonacha commented Dec 20, 2018

I have published an npm package with some reusable components using a different approach and I am able to reuse it in other projects too. I hope the same could be implemented for learningstorybook as well. And also it would be also interesting to add docz to the learningstorybook too.

https://www.docz.site

But let's do it one step at a time.

@domyen
Copy link
Member

domyen commented Jan 22, 2019

I'm going to close this because publishing Taskbox's components isn't in the scope of this guide. I'm going to make another issue to document "advanced" topics for the sequel to Learn Storybook.

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

No branches or pull requests

3 participants