katerina 0c0713bdc1 chore(storybook): add "or application" to the Storybook package docs/description
Until recently we only supported Storybook configuration for libraries
now we support for apps as
well.
Some docs were out of date.
2020-12-19 14:20:27 -05:00

64 lines
935 B
Markdown

# configuration
Add storybook configuration to a ui library or an application
## Usage
```bash
nx generate configuration ...
```
By default, Nx will search for `configuration` in the default collection provisioned in `angular.json`.
You can specify the collection explicitly as follows:
```bash
nx g @nrwl/storybook:configuration ...
```
Show what will be generated without writing to disk:
```bash
nx g configuration ... --dry-run
```
## Options
### configureCypress
Type: `boolean`
Run the cypress-configure generator
### js
Default: `false`
Type: `boolean`
Generate JavaScript files rather than TypeScript files
### linter
Default: `eslint`
Type: `string`
Possible values: `eslint`, `tslint`
The tool to use for running lint checks.
### name
Type: `string`
Library or application name
### uiFramework
Type: `string`
Possible values: `@storybook/angular`, `@storybook/react`
Storybook UI Framework to use