I have two repositories in github: with storybook and with rect project. How do I need to properly arrange the folders so that I can update the repositories separately and use components from the storybook in the project? Thanks
There could be two scenarios:
1) You want to independently develop components as a separate repository using storybook which is the case in most cases. Here we have several options to share components:-
Publish onto npm
and use as any other react component from npm
like react-select
etc.
You want to use this component internally only in internal
projects. use git ssh
Refer to this
link for more info.
2) You want to share components only in specific repositories. In this case you could combine all those repositories using lerna and one of the repository could be for storybook. So all projects are under lerna so easily shareable.
Hope that helps!!!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.