@nrwl/angular:change-storybook-targets

Change the Storybook target executors.

This generator will change the storybook and build-storybook targets in all your Angular projects that are configured to use Storybook. The new target configuration will use the native Storybook builders (@storybook/angular:build-storybook and @storybook/angular:start-storybook) instead of the Nx Storybook builders (@nrwl/storybook:build-storybook and @nrwl/storybook:storybook).

This generator is usually invoked through a migrator, when you are using nx migrate to upgrade your workspace to Nx 14.1.8 or later.

If you are on Nx 14.1.8 or later and you did not use nx migrate, you can run this generator manually by running the following command:

nx g @nrwl/angular:change-storybook-targets

You can read more about how this generator works, and why we are changing the Storybook targets, in the Angular Storybook targets documentation page.

Usage

nx generate change-storybook-targets ...

By default, Nx will search for change-storybook-targets in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/angular:change-storybook-targets ...

Show what will be generated without writing to disk:

nx g change-storybook-targets ... --dry-run

Options

skipFormat

boolean
Default: false

Skip formatting files.