@nx/react:component-story
Generate storybook story for a react component.
Nx Webinar: Monorepos - The Benefits, Challenges and Importance of Tooling SupportNx Webinar: Monorepos - The Benefits, Challenges and Importance of Tooling SupportRegister
Generate storybook story for a react component.
1nx generate component-story ...
2
By default, Nx will search for component-story
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/react:component-story ...
2
Show what will be generated without writing to disk:
1nx g component-story ... --dry-run
2
Relative path to the component file from the library root.
The project where to add the components.
true
Set up Storybook interaction tests.
false
Skip formatting files.