Plugins
Storybook
Plugin for Storybook component development and testing
@bjb-forge/nx-storybook-project
Installation
npx forge add @bjb-forge/nx-storybook-projectPlugin Options
{
"plugin": "@bjb-forge/nx-storybook-project/nx-plugin",
"options": {}
}| Option | Type | Description |
|---|---|---|
storybook.serveStorybookTargetName | string | The name of the serve storybook target |
storybook.buildStorybookTargetName | string | The name of the build storybook target |
storybook.staticStorybookTargetName | string | The name of the static storybook target |
storybook.buildDepsTargetName | string | The name of the build deps target |
storybook.watchDepsTargetName | string | The name of the watch deps target |
test.targetName | string | The name of the test target |
Inferred Targets
serve
Serves Storybook for development.
Condition: All projects with Storybook configuration
build
Builds Storybook for production.
Condition: All projects with Storybook configuration
test
Runs Storybook tests using vitest with @storybook/addon-vitest.
Condition: All projects with Storybook configuration
static-storybook
Serves the static build of Storybook.
Condition: All projects with Storybook configuration
build-deps
Builds dependencies for Storybook.
Condition: All projects with Storybook configuration
watch-deps
Watches and rebuilds dependencies for Storybook.
Condition: All projects with Storybook configuration