@nx/storybook:init
Add Storybook Configuration to the workspace.
Nx Webinar: Monorepos - The Benefits, Challenges and Importance of Tooling SupportNx Webinar: Monorepos - The Benefits, Challenges and Importance of Tooling SupportRegister
Please do not extend this schema as it is part of Nx internal usage.
Add Storybook Configuration to the workspace.
1nx generate init ...
2
1nx g ng-add ... #same
2
By default, Nx will search for init
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/storybook:init ...
2
Show what will be generated without writing to disk:
1nx g init ... --dry-run
2
@storybook/angular
, @storybook/html-webpack5
, @storybook/nextjs
, @storybook/preact-webpack5
, @storybook/react-webpack5
, @storybook/react-vite
, @storybook/server-webpack5
, @storybook/svelte-webpack5
, @storybook/svelte-vite
, @storybook/sveltekit
, @storybook/vue-webpack5
, @storybook/vue-vite
, @storybook/vue3-webpack5
, @storybook/vue3-vite
, @storybook/web-components-webpack5
, @storybook/web-components-vite
, @storybook/react
, @storybook/html
, @storybook/web-components
, @storybook/vue
, @storybook/vue3
, @storybook/svelte
, @storybook/react-native
Storybook UI Framework to use.
false
Generate JavaScript story files rather than TypeScript story files.