Forge
Plugins

Storybook

Plugin for Storybook component development and testing

@bjb-forge/nx-storybook-project

Installation

npx forge add @bjb-forge/nx-storybook-project

Plugin Options

{
  "plugin": "@bjb-forge/nx-storybook-project/nx-plugin",
  "options": {}
}
OptionTypeDescription
storybook.serveStorybookTargetNamestringThe name of the serve storybook target
storybook.buildStorybookTargetNamestringThe name of the build storybook target
storybook.staticStorybookTargetNamestringThe name of the static storybook target
storybook.buildDepsTargetNamestringThe name of the build deps target
storybook.watchDepsTargetNamestringThe name of the watch deps target
test.targetNamestringThe 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

On this page