feat(storybook): add docsMode support (#2551)
This commit is contained in:
parent
cbd5d4c426
commit
cd2597066b
@ -6,6 +6,14 @@ Builder properties can be configured in angular.json when defining the builder,
|
||||
|
||||
## Properties
|
||||
|
||||
### docsMode
|
||||
|
||||
Default: `false`
|
||||
|
||||
Type: `boolean`
|
||||
|
||||
Build a documentation-only site using addon-docs.
|
||||
|
||||
### outputPath
|
||||
|
||||
Type: `string`
|
||||
|
||||
@ -7,6 +7,14 @@ Read more about how to use builders and the CLI here: https://nx.dev/react/guide
|
||||
|
||||
## Properties
|
||||
|
||||
### docsMode
|
||||
|
||||
Default: `false`
|
||||
|
||||
Type: `boolean`
|
||||
|
||||
Build a documentation-only site using addon-docs.
|
||||
|
||||
### outputPath
|
||||
|
||||
Type: `string`
|
||||
|
||||
@ -7,6 +7,14 @@ Read more about how to use builders and the CLI here: https://nx.dev/web/guides/
|
||||
|
||||
## Properties
|
||||
|
||||
### docsMode
|
||||
|
||||
Default: `false`
|
||||
|
||||
Type: `boolean`
|
||||
|
||||
Build a documentation-only site using addon-docs.
|
||||
|
||||
### outputPath
|
||||
|
||||
Type: `string`
|
||||
|
||||
@ -27,6 +27,8 @@ export interface StorybookBuilderOptions extends JsonObject {
|
||||
uiFramework: string;
|
||||
config: StorybookConfig;
|
||||
quiet?: boolean;
|
||||
outputPath?: string;
|
||||
docsMode?: boolean;
|
||||
}
|
||||
|
||||
try {
|
||||
@ -85,8 +87,8 @@ async function storybookOptionMapper(
|
||||
configDir: storybookConfig,
|
||||
...frameworkOptions,
|
||||
frameworkPresets: [...(frameworkOptions.frameworkPresets || [])],
|
||||
|
||||
watch: false
|
||||
watch: false,
|
||||
docsMode: builderOptions.docsMode
|
||||
};
|
||||
optionsWithFramework.config;
|
||||
return optionsWithFramework;
|
||||
|
||||
@ -47,6 +47,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"docsMode": {
|
||||
"type": "boolean",
|
||||
"description": "Build a documentation-only site using addon-docs.",
|
||||
"default": false
|
||||
},
|
||||
"quiet": {
|
||||
"type": "boolean",
|
||||
"description": "Suppress verbose build output.",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user