@storybook/angular 7.5.0-alpha.3 → 7.5.0-alpha.5
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.
- package/dist/builders/build-storybook/index.js +3 -1
- package/dist/builders/build-storybook/schema.json +9 -0
- package/dist/builders/start-storybook/index.js +5 -1
- package/dist/builders/start-storybook/schema.json +19 -0
- package/dist/client/globals.d.ts +1 -1
- package/dist/client/globals.js +1 -1
- package/package.json +15 -15
|
@@ -23,7 +23,7 @@ const commandBuilder = (options, context) => {
|
|
|
23
23
|
outputDir: 'SBCONFIG_OUTPUT_DIR',
|
|
24
24
|
configDir: 'SBCONFIG_CONFIG_DIR',
|
|
25
25
|
});
|
|
26
|
-
const { browserTarget, stylePreprocessorOptions, styles, configDir, docs, loglevel, outputDir, quiet, enableProdMode = true, webpackStatsJson, disableTelemetry, assets, } = options;
|
|
26
|
+
const { browserTarget, stylePreprocessorOptions, styles, configDir, docs, loglevel, outputDir, quiet, enableProdMode = true, webpackStatsJson, debugWebpack, disableTelemetry, assets, previewUrl, } = options;
|
|
27
27
|
const standaloneOptions = {
|
|
28
28
|
packageJson: (0, read_pkg_up_1.sync)({ cwd: __dirname }).packageJson,
|
|
29
29
|
configDir,
|
|
@@ -42,6 +42,8 @@ const commandBuilder = (options, context) => {
|
|
|
42
42
|
},
|
|
43
43
|
tsConfig,
|
|
44
44
|
webpackStatsJson,
|
|
45
|
+
debugWebpack,
|
|
46
|
+
previewUrl,
|
|
45
47
|
};
|
|
46
48
|
return standaloneOptions;
|
|
47
49
|
}), (0, operators_1.switchMap)((standaloneOptions) => runInstance({ ...standaloneOptions, mode: 'static' })), (0, operators_1.map)(() => {
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"description": "Controls level of logging during build. Can be one of: [silly, verbose, info (default), warn, error, silent].",
|
|
30
30
|
"pattern": "(silly|verbose|info|warn|silent)"
|
|
31
31
|
},
|
|
32
|
+
"debugWebpack": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Debug the Webpack configuration",
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
32
37
|
"enableProdMode": {
|
|
33
38
|
"type": "boolean",
|
|
34
39
|
"description": "Disable Angular's development mode, which turns off assertions and other checks within the framework.",
|
|
@@ -62,6 +67,10 @@
|
|
|
62
67
|
"description": "Write Webpack Stats JSON to disk",
|
|
63
68
|
"default": false
|
|
64
69
|
},
|
|
70
|
+
"previewUrl": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Disables the default storybook preview and lets you use your own"
|
|
73
|
+
},
|
|
65
74
|
"styles": {
|
|
66
75
|
"type": "array",
|
|
67
76
|
"description": "Global styles to be included in the build.",
|
|
@@ -30,7 +30,7 @@ const commandBuilder = (options, context) => {
|
|
|
30
30
|
});
|
|
31
31
|
// eslint-disable-next-line no-param-reassign
|
|
32
32
|
options.port = parseInt(`${options.port}`, 10);
|
|
33
|
-
const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, enableProdMode = false, smokeTest, sslCa, sslCert, sslKey, disableTelemetry, assets, initialPath, open, } = options;
|
|
33
|
+
const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, enableProdMode = false, smokeTest, sslCa, sslCert, sslKey, disableTelemetry, assets, initialPath, open, debugWebpack, loglevel, webpackStatsJson, previewUrl, } = options;
|
|
34
34
|
const standaloneOptions = {
|
|
35
35
|
packageJson: (0, read_pkg_up_1.sync)({ cwd: __dirname }).packageJson,
|
|
36
36
|
ci,
|
|
@@ -56,6 +56,10 @@ const commandBuilder = (options, context) => {
|
|
|
56
56
|
tsConfig,
|
|
57
57
|
initialPath,
|
|
58
58
|
open,
|
|
59
|
+
debugWebpack,
|
|
60
|
+
loglevel,
|
|
61
|
+
webpackStatsJson,
|
|
62
|
+
previewUrl,
|
|
59
63
|
};
|
|
60
64
|
return standaloneOptions;
|
|
61
65
|
}), (0, operators_1.switchMap)((standaloneOptions) => runInstance(standaloneOptions)), (0, operators_1.map)((port) => {
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
|
|
11
11
|
"default": null
|
|
12
12
|
},
|
|
13
|
+
"debugWebpack": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "Debug the Webpack configuration",
|
|
16
|
+
"default": false
|
|
17
|
+
},
|
|
13
18
|
"tsConfig": {
|
|
14
19
|
"type": "string",
|
|
15
20
|
"description": "The full path for the TypeScript configuration file, relative to the current workspace."
|
|
@@ -123,6 +128,20 @@
|
|
|
123
128
|
"initialPath": {
|
|
124
129
|
"type": "string",
|
|
125
130
|
"description": "URL path to be appended when visiting Storybook for the first time"
|
|
131
|
+
},
|
|
132
|
+
"webpackStatsJson": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"description": "Write Webpack Stats JSON to disk",
|
|
135
|
+
"default": false
|
|
136
|
+
},
|
|
137
|
+
"previewUrl": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "Disables the default storybook preview and lets you use your own"
|
|
140
|
+
},
|
|
141
|
+
"loglevel": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"description": "Controls level of logging during build. Can be one of: [silly, verbose, info (default), warn, error, silent].",
|
|
144
|
+
"pattern": "(silly|verbose|info|warn|silent)"
|
|
126
145
|
}
|
|
127
146
|
},
|
|
128
147
|
"additionalProperties": false,
|
package/dist/client/globals.d.ts
CHANGED
package/dist/client/globals.js
CHANGED
|
@@ -24,7 +24,7 @@ const global_1 = require("@storybook/global");
|
|
|
24
24
|
/** *************************************************************************************************
|
|
25
25
|
* Zone JS is required by Angular itself.
|
|
26
26
|
*/
|
|
27
|
-
require("zone.js
|
|
27
|
+
require("zone.js"); // Included with Angular CLI.
|
|
28
28
|
/** *************************************************************************************************
|
|
29
29
|
* APPLICATION IMPORTS
|
|
30
30
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "7.5.0-alpha.
|
|
3
|
+
"version": "7.5.0-alpha.5",
|
|
4
4
|
"description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"prep": "../../../scripts/prepare/tsc.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@storybook/builder-webpack5": "7.5.0-alpha.
|
|
41
|
-
"@storybook/cli": "7.5.0-alpha.
|
|
42
|
-
"@storybook/client-logger": "7.5.0-alpha.
|
|
43
|
-
"@storybook/core-common": "7.5.0-alpha.
|
|
44
|
-
"@storybook/core-events": "7.5.0-alpha.
|
|
45
|
-
"@storybook/core-server": "7.5.0-alpha.
|
|
46
|
-
"@storybook/core-webpack": "7.5.0-alpha.
|
|
47
|
-
"@storybook/docs-tools": "7.5.0-alpha.
|
|
40
|
+
"@storybook/builder-webpack5": "7.5.0-alpha.5",
|
|
41
|
+
"@storybook/cli": "7.5.0-alpha.5",
|
|
42
|
+
"@storybook/client-logger": "7.5.0-alpha.5",
|
|
43
|
+
"@storybook/core-common": "7.5.0-alpha.5",
|
|
44
|
+
"@storybook/core-events": "7.5.0-alpha.5",
|
|
45
|
+
"@storybook/core-server": "7.5.0-alpha.5",
|
|
46
|
+
"@storybook/core-webpack": "7.5.0-alpha.5",
|
|
47
|
+
"@storybook/docs-tools": "7.5.0-alpha.5",
|
|
48
48
|
"@storybook/global": "^5.0.0",
|
|
49
|
-
"@storybook/manager-api": "7.5.0-alpha.
|
|
50
|
-
"@storybook/node-logger": "7.5.0-alpha.
|
|
51
|
-
"@storybook/preview-api": "7.5.0-alpha.
|
|
52
|
-
"@storybook/telemetry": "7.5.0-alpha.
|
|
53
|
-
"@storybook/types": "7.5.0-alpha.
|
|
49
|
+
"@storybook/manager-api": "7.5.0-alpha.5",
|
|
50
|
+
"@storybook/node-logger": "7.5.0-alpha.5",
|
|
51
|
+
"@storybook/preview-api": "7.5.0-alpha.5",
|
|
52
|
+
"@storybook/telemetry": "7.5.0-alpha.5",
|
|
53
|
+
"@storybook/types": "7.5.0-alpha.5",
|
|
54
54
|
"@types/node": "^16.0.0",
|
|
55
55
|
"@types/react": "^16.14.34",
|
|
56
56
|
"@types/react-dom": "^16.9.14",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
107
107
|
"rxjs": "^6.0.0 || ^7.4.0",
|
|
108
108
|
"typescript": "^4.0.0 || ^5.0.0",
|
|
109
|
-
"zone.js": "
|
|
109
|
+
"zone.js": ">= 0.11.1 < 1.0.0"
|
|
110
110
|
},
|
|
111
111
|
"peerDependenciesMeta": {
|
|
112
112
|
"@angular/cli": {
|