@storybook/angular 7.0.19 → 7.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,22 +6,20 @@ import { AssetPattern, StyleElement } from '@angular-devkit/build-angular/src/bu
|
|
|
6
6
|
export type StorybookBuilderOptions = JsonObject & {
|
|
7
7
|
browserTarget?: string | null;
|
|
8
8
|
tsConfig?: string;
|
|
9
|
-
docs: boolean;
|
|
10
9
|
compodoc: boolean;
|
|
11
10
|
compodocArgs: string[];
|
|
12
11
|
styles?: StyleElement[];
|
|
13
12
|
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
14
13
|
assets?: AssetPattern[];
|
|
15
|
-
} & Pick<CLIOptions, 'port' | 'host' | 'configDir' | 'https' | 'sslCa' | 'sslCert' | 'sslKey' | 'smokeTest' | 'ci' | 'quiet' | 'disableTelemetry'>;
|
|
14
|
+
} & Pick<CLIOptions, 'port' | 'host' | 'configDir' | 'https' | 'sslCa' | 'sslCert' | 'sslKey' | 'smokeTest' | 'ci' | 'quiet' | 'disableTelemetry' | 'open' | 'docs'>;
|
|
16
15
|
export type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
|
|
17
16
|
declare const _default: import("@angular-devkit/architect/src/internal").Builder<JsonObject & {
|
|
18
17
|
browserTarget?: string;
|
|
19
18
|
tsConfig?: string;
|
|
20
|
-
docs: boolean;
|
|
21
19
|
compodoc: boolean;
|
|
22
20
|
compodocArgs: string[];
|
|
23
21
|
styles?: StyleElement[];
|
|
24
22
|
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
25
23
|
assets?: AssetPattern[];
|
|
26
|
-
} & Pick<CLIOptions, "host" | "disableTelemetry" | "configDir" | "quiet" | "port" | "https" | "sslCa" | "sslCert" | "sslKey" | "smokeTest" | "ci">>;
|
|
24
|
+
} & Pick<CLIOptions, "docs" | "host" | "disableTelemetry" | "configDir" | "quiet" | "port" | "https" | "sslCa" | "sslCert" | "sslKey" | "smokeTest" | "open" | "ci">>;
|
|
27
25
|
export default _default;
|
|
@@ -14,7 +14,10 @@ const error_handler_1 = require("../utils/error-handler");
|
|
|
14
14
|
const commandBuilder = (options, context) => {
|
|
15
15
|
const builder = (0, rxjs_1.from)(setup(options, context)).pipe((0, operators_1.switchMap)(({ tsConfig }) => {
|
|
16
16
|
const runCompodoc$ = options.compodoc
|
|
17
|
-
? (0, run_compodoc_1.runCompodoc)({
|
|
17
|
+
? (0, run_compodoc_1.runCompodoc)({
|
|
18
|
+
compodocArgs: [...options.compodocArgs, ...(options.quiet ? ['--silent'] : [])],
|
|
19
|
+
tsconfig: tsConfig,
|
|
20
|
+
}, context).pipe((0, operators_1.mapTo)({ tsConfig }))
|
|
18
21
|
: (0, rxjs_1.of)({});
|
|
19
22
|
return runCompodoc$.pipe((0, operators_1.mapTo)({ tsConfig }));
|
|
20
23
|
}), (0, operators_1.map)(({ tsConfig }) => {
|
|
@@ -27,7 +30,7 @@ const commandBuilder = (options, context) => {
|
|
|
27
30
|
});
|
|
28
31
|
// eslint-disable-next-line no-param-reassign
|
|
29
32
|
options.port = parseInt(`${options.port}`, 10);
|
|
30
|
-
const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, smokeTest, sslCa, sslCert, sslKey, disableTelemetry, assets, } = options;
|
|
33
|
+
const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, smokeTest, sslCa, sslCert, sslKey, disableTelemetry, assets, open, } = options;
|
|
31
34
|
const standaloneOptions = {
|
|
32
35
|
packageJson: (0, read_pkg_up_1.sync)({ cwd: __dirname }).packageJson,
|
|
33
36
|
ci,
|
|
@@ -50,6 +53,7 @@ const commandBuilder = (options, context) => {
|
|
|
50
53
|
...(assets ? { assets } : {}),
|
|
51
54
|
},
|
|
52
55
|
tsConfig,
|
|
56
|
+
open,
|
|
53
57
|
};
|
|
54
58
|
return standaloneOptions;
|
|
55
59
|
}), (0, operators_1.switchMap)((standaloneOptions) => runInstance(standaloneOptions)), (0, operators_1.map)((port) => {
|
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
"description": "CI mode (skip interactive prompts, don't open browser).",
|
|
57
57
|
"default": false
|
|
58
58
|
},
|
|
59
|
+
"open": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Whether to open Storybook automatically in the browser.",
|
|
62
|
+
"default": true
|
|
63
|
+
},
|
|
59
64
|
"quiet": {
|
|
60
65
|
"type": "boolean",
|
|
61
66
|
"description": "Suppress verbose build output.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.20",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"prep": "../../../scripts/prepare/tsc.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@storybook/builder-webpack5": "7.0.
|
|
40
|
-
"@storybook/cli": "7.0.
|
|
41
|
-
"@storybook/client-logger": "7.0.
|
|
42
|
-
"@storybook/core-client": "7.0.
|
|
43
|
-
"@storybook/core-common": "7.0.
|
|
44
|
-
"@storybook/core-events": "7.0.
|
|
45
|
-
"@storybook/core-server": "7.0.
|
|
46
|
-
"@storybook/core-webpack": "7.0.
|
|
47
|
-
"@storybook/docs-tools": "7.0.
|
|
39
|
+
"@storybook/builder-webpack5": "7.0.20",
|
|
40
|
+
"@storybook/cli": "7.0.20",
|
|
41
|
+
"@storybook/client-logger": "7.0.20",
|
|
42
|
+
"@storybook/core-client": "7.0.20",
|
|
43
|
+
"@storybook/core-common": "7.0.20",
|
|
44
|
+
"@storybook/core-events": "7.0.20",
|
|
45
|
+
"@storybook/core-server": "7.0.20",
|
|
46
|
+
"@storybook/core-webpack": "7.0.20",
|
|
47
|
+
"@storybook/docs-tools": "7.0.20",
|
|
48
48
|
"@storybook/global": "^5.0.0",
|
|
49
|
-
"@storybook/manager-api": "7.0.
|
|
50
|
-
"@storybook/node-logger": "7.0.
|
|
51
|
-
"@storybook/preview-api": "7.0.
|
|
52
|
-
"@storybook/telemetry": "7.0.
|
|
53
|
-
"@storybook/types": "7.0.
|
|
49
|
+
"@storybook/manager-api": "7.0.20",
|
|
50
|
+
"@storybook/node-logger": "7.0.20",
|
|
51
|
+
"@storybook/preview-api": "7.0.20",
|
|
52
|
+
"@storybook/telemetry": "7.0.20",
|
|
53
|
+
"@storybook/types": "7.0.20",
|
|
54
54
|
"@types/node": "^16.0.0",
|
|
55
55
|
"@types/react": "^16.14.34",
|
|
56
56
|
"@types/react-dom": "^16.9.14",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"bundler": {
|
|
125
125
|
"tsConfig": "tsconfig.build.json"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "9fb2573aa274f3f69d3358050e8df9c903e8245f"
|
|
128
128
|
}
|