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

migrate-converged-pkg: creates unnecessary .storybook folder #20724

Closed
layershifter opened this issue Nov 23, 2021 · 6 comments · Fixed by #23413
Closed

migrate-converged-pkg: creates unnecessary .storybook folder #20724

layershifter opened this issue Nov 23, 2021 · 6 comments · Fixed by #23413
Assignees
Labels
Area: Build System NX: workspace generators Resolution: Soft Close Soft closing inactive issues over a certain period Status: Fixed Fixed in some PR

Comments

@layershifter
Copy link
Member

I am migrating @fluentui/react-shared-contexts via:

yarn nx workspace-generator migrate-converged-pkg --name='@fluentui/react-shared-contexts'

During migration the generator creates .storybook that is not necessary for this package:

CREATE packages/react-shared-contexts/.storybook/tsconfig.json
CREATE packages/react-shared-contexts/.storybook/main.js
CREATE packages/react-shared-contexts/.storybook/preview.js
@layershifter
Copy link
Member Author

@Hotell I am not sure that it's solvable as I don't see any logical condition for this, but if you have ideas it will be awesome to solve this.

@layershifter
Copy link
Member Author

layershifter commented Nov 24, 2021

@fluentui/react-context-selector (#20741), @fluentui/make-styles (#20742) have the same problem.

@layershifter
Copy link
Member Author

layershifter commented Nov 24, 2021

For @fluentui/babel-make-styles (#20744) it's different: .storybook folder was not created, but scripts were added to package.json.

Edit: moved this to a separate issue #20745

@Hotell
Copy link
Contributor

Hotell commented Nov 24, 2021

right, adding this "via context" is tricky in general. I was thinking about a flag for user

nx workspace-generator migrate-converged-package --name=@fluentui/react-zzz --init-storybook

so the logic would be something like:

  • if there is existing storybook , update the setup
  • if there is no existing storybook, do nothing, unless user provided --init-storybook

WDYT?

@layershifter
Copy link
Member Author

WDYT?

I like the flag idea, but I think that it should be opposite: --disable-storybook
As generally we create components, not utility packages ¯_(ツ)_/¯

@msft-fluent-ui-bot msft-fluent-ui-bot added the Resolution: Soft Close Soft closing inactive issues over a certain period label May 23, 2022
@msft-fluent-ui-bot
Copy link
Collaborator

Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area: Build System NX: workspace generators Resolution: Soft Close Soft closing inactive issues over a certain period Status: Fixed Fixed in some PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants