@nrwl/storybook:configuration

Add Storybook configuration to a UI library or an application.

Usage

nx generate configuration ...

By default, Nx will search for configuration in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/storybook:configuration ...

Show what will be generated without writing to disk:

nx g configuration ... --dry-run

Options

configureCypress

boolean

Run the cypress-configure generator.

cypressDirectory

string

A directory where the Cypress project will be placed. Added at root by default.

js

boolean
Default: false

Generate JavaScript story files rather than TypeScript story files.

linter

string
Default: eslint
Accepted values: eslint, tslint, none

The tool to use for running lint checks.

name

Required
string

Library or application name.

projectBuildConfig

string

Provide a custom projectBuildConfig for the Angular executor. If left blank, Nx will use the default.

standaloneConfig

boolean

Split the project configuration into <projectRoot>/project.json rather than including it inside workspace.json.

tsConfiguration

boolean
Default: false

Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.

uiFramework

string
Accepted values: @storybook/angular, @storybook/react

Storybook UI Framework to use.