Skip to content

Commit

Permalink
cleanup(storybook): add some stricter types for the storybook executor (
Browse files Browse the repository at this point in the history
nrwl#5805)

Co-authored-by: Dominik Pieper <[email protected]>
  • Loading branch information
jaysoo and DominikPieper authored May 27, 2021
1 parent 2d2880e commit aaad6f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/angular/api-storybook/executors/storybook.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Default: `@storybook/angular`

Type: `string`

Possible values: `@storybook/angular`, `@storybook/react`, `@storybook/html`

Storybook framework npm package

### watch
Expand Down
2 changes: 2 additions & 0 deletions docs/node/api-storybook/executors/storybook.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ Default: `@storybook/angular`

Type: `string`

Possible values: `@storybook/angular`, `@storybook/react`, `@storybook/html`

Storybook framework npm package

### watch
Expand Down
2 changes: 2 additions & 0 deletions docs/react/api-storybook/executors/storybook.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ Default: `@storybook/angular`

Type: `string`

Possible values: `@storybook/angular`, `@storybook/react`, `@storybook/html`

Storybook framework npm package

### watch
Expand Down
1 change: 1 addition & 0 deletions packages/storybook/src/executors/storybook/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"uiFramework": {
"type": "string",
"description": "Storybook framework npm package",
"enum": ["@storybook/angular", "@storybook/react", "@storybook/html"],
"default": "@storybook/angular",
"hidden": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface StorybookConfig {
}

export interface StorybookExecutorOptions {
uiFramework: string;
uiFramework: '@storybook/angular' | '@storybook/react' | '@storybook/html';
projectBuildConfig?: string;
config: StorybookConfig;
host?: string;
Expand Down

0 comments on commit aaad6f0

Please sign in to comment.