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

CSFFile: Handle re-exported stories #16607

Merged
merged 1 commit into from
Nov 5, 2021
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented Nov 5, 2021

Issue: #16598

What I did

Users are breaking up their files into individual stories and then re-exporting those files from a central .stories.js file, which is a reasonable pattern.

I've extended CSFFile to handle this case. However it doesn't analyze the content of the story file that's being re-exported. For now this means if you want to rename the story using storyName, you'll need to do this in the parent file.

How to test

See attached tests

@nx-cloud
Copy link

nx-cloud bot commented Nov 5, 2021

Nx Cloud Report

CI ran the following commands for commit 8fc222d. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch

Status Command
#000000 nx run-many --target=prepare --all --parallel --max-parallel=15

Sent with 💌 from NxCloud.

@nx-cloud
Copy link

nx-cloud bot commented Nov 5, 2021

Nx Cloud Report

We didn't find any information for the current pull request with the commit 8fc222d.
You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.

Check the Nx Cloud Github Integration documentation for more information.


Sent with 💌 from NxCloud.

@shilman shilman requested a review from tmeasday November 5, 2021 16:59
@shilman
Copy link
Member Author

shilman commented Nov 5, 2021

Self-merging @tmeasday

@shilman shilman merged commit b1fe4da into next Nov 5, 2021
@shilman shilman deleted the 16598-csf-story-re-exports branch November 5, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant