-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Core: colocate react stories #10901
Core: colocate react stories #10901
Conversation
scripts/prepare.js
Outdated
if ( | ||
fs.lstatSync(filePath).isDirectory() || | ||
/generators\/.+\/template.*/.test(filePath) || | ||
/dist\/framework\/.*/.test(filePath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absolutely not sure about this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this line trying to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last build step is cleaning up folders.
Because cli/src/framework/* is meant to be copied and not compiled, it's in the original format in dist.
beacause it's .ts / .tsx, we need to tell prepare
to not clean this folder.
The thing is prepare is valid for all projects so I can't only filter for cli
Issue: #10793
What I did
Move components from
@storybook/<framework>/demo
tocli/framework/<framework>/
Copy them to user
/src/
on init