tajo / ladle

🥄 Develop, test and document your React story components faster.
https://www.ladle.dev
MIT License
2.63k stars 93 forks source link

Use outside an existing project? #575

Closed aadrian closed 1 month ago

aadrian commented 2 months ago

Hi,

Can Ladle be used outside of an existing project easily? If yes, are there any links/docs how to achieve this? ( I could not find any :( ).

In many situations, it is not desired/allowed that the storybooks are part of the repo/project itself, but need to be separated:

Thank you!

tajo commented 1 month ago

not really, we are probably limited by vite needing to have access to single project's node_modules to resolve all dependencies

aadrian commented 1 month ago

@tajo since Vite would have access to the components sources, it also has access to the "package.json" . Wouldn't that be enough?