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

Core: colocate react stories #10901

Closed
wants to merge 15 commits into from
Closed

Core: colocate react stories #10901

wants to merge 15 commits into from

Conversation

tooppaaa
Copy link
Contributor

@tooppaaa tooppaaa commented May 23, 2020

Issue: #10793

What I did

Move components from @storybook/<framework>/demo to cli/framework/<framework>/
Copy them to user /src/ on init

@tooppaaa tooppaaa added in progress maintenance User-facing maintenance tasks labels May 23, 2020
@tooppaaa tooppaaa self-assigned this May 23, 2020
@github-actions
Copy link
Contributor

github-actions bot commented May 23, 2020

Fails
🚫 PR is marked with "in progress" label.

Generated by 🚫 dangerJS against c4d8986

if (
fs.lstatSync(filePath).isDirectory() ||
/generators\/.+\/template.*/.test(filePath) ||
/dist\/framework\/.*/.test(filePath)
Copy link
Contributor Author

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

Copy link
Member

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants