Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5109068

Browse files
BuckyMalerFrozenPandaz
authored andcommittedAug 13, 2020
feat(storybook): add docs mode option to dev server builder (#2882)
closes #3147
1 parent 020d2e1 commit 5109068

File tree

5 files changed

+22
-1
lines changed

5 files changed

+22
-1
lines changed
 

Diff for: ‎docs/angular/api-storybook/builders/storybook.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Builder properties can be configured in angular.json when defining the builder,
66

77
## Properties
88

9+
### docsMode
10+
11+
Default: `false`
12+
13+
Type: `boolean`
14+
15+
Build a documentation-only site using addon-docs.
16+
917
### host
1018

1119
Default: `localhost`

Diff for: ‎docs/react/api-storybook/builders/storybook.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ Read more about how to use builders and the CLI here: https://nx.dev/react/guide
77

88
## Properties
99

10+
### docsMode
11+
12+
Default: `false`
13+
14+
Type: `boolean`
15+
16+
Build a documentation-only site using addon-docs.
17+
1018
### host
1119

1220
Default: `localhost`

Diff for: ‎packages/storybook/src/builders/build-storybook/build-storybook.impl.ts

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ async function storybookOptionMapper(
8888
...frameworkOptions,
8989
frameworkPresets: [...(frameworkOptions.frameworkPresets || [])],
9090
watch: false,
91-
docsMode: builderOptions.docsMode,
9291
};
9392
optionsWithFramework.config;
9493
return optionsWithFramework;

Diff for: ‎packages/storybook/src/builders/storybook/schema.json

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
}
7979
]
8080
},
81+
"docsMode": {
82+
"type": "boolean",
83+
"description": "Build a documentation-only site using addon-docs.",
84+
"default": false
85+
},
8186
"quiet": {
8287
"type": "boolean",
8388
"description": "Suppress verbose build output.",

Diff for: ‎packages/storybook/src/builders/storybook/storybook.impl.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export interface StorybookBuilderOptions extends JsonObject {
3333
sslKey?: string;
3434
staticDir?: number[];
3535
watch?: boolean;
36+
docsMode?: boolean;
3637
}
3738

3839
try {

0 commit comments

Comments
 (0)
Please sign in to comment.