-
Notifications
You must be signed in to change notification settings - Fork 31
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
Move Storybook in it's own dir. #34
Conversation
👍 |
Thanks! Yes why not :) Firstly, you need to run the storybook and verify if it works correctly. Otherwise, you need to fix the storybook versions and generate the package-lock.json. |
UPDATE: it doesn't with npm 7. |
You need to remove the node-modules folder and try again... |
Ok I'm trying with Windows 10, npm 7.8.0 and node 14.16.0. And I'm getting this error now:
this error is because of this: https://stackoverflow.com/a/66035709 and Storybook's team is aware and they are fixing this. Yarn doesn't fix the problem, it gets around it, as npm did before v7. We can fix this moving Storybook in a separate/dedicated dir. I think it's also better because it gets leaner for the real product (which is svelte-query), even for us who use it and don't need the storybook dependencies in each installation. I'll update this PR with this change if you like. |
I updated the PR with those changes. Tests are green with some warnings. Until they (Storybook team) fix the problem with npm 7 the installation can be done with yarn or with We can also remove yarn from anywhere if you want. @SomaticIT what do you think? |
For me the issue is not about contributing inside the project. If you think this project needs The problem I see is when you install this lib as a dependency of another project, it prints a warning that could create confusion. It says that you need to use |
Storybook starts now! It's done! Can you verify, @amen-souissi? |
Yes, it works fine with npm and yarn. Last thing ... You have to adapt the readme file and it's OK. |
I don't know what to change in README.md. The commands are still OK. We are not removing
Am I wrong? |
For storybook, we need to install the project independently. We should add a storybook section for example. |
You're right! Done! |
Fixes #24.
This is extremely important because many CI activities are blocked.