@nrwl/storybook 15.5.0 → 15.5.1
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/CHANGELOG.md +1 -1
- package/package.json +6 -6
- package/src/executors/build-storybook/schema.json +4 -26
- package/src/executors/storybook/schema.json +4 -30
- package/src/generators/configuration/schema.json +10 -5
- package/src/generators/cypress-project/schema.json +2 -1
- package/src/generators/init/schema.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## [15.5.1](https://github.com/nrwl/nx/compare/15.5.0...15.5.1) (2023-01-13)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/storybook
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/storybook",
|
|
3
|
-
"version": "15.5.
|
|
3
|
+
"version": "15.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.",
|
|
6
6
|
"repository": {
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"migrations": "./migrations.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nrwl/cypress": "15.5.
|
|
34
|
-
"@nrwl/devkit": "15.5.
|
|
35
|
-
"@nrwl/linter": "15.5.
|
|
36
|
-
"@nrwl/workspace": "15.5.
|
|
33
|
+
"@nrwl/cypress": "15.5.1",
|
|
34
|
+
"@nrwl/devkit": "15.5.1",
|
|
35
|
+
"@nrwl/linter": "15.5.1",
|
|
36
|
+
"@nrwl/workspace": "15.5.1",
|
|
37
37
|
"dotenv": "~10.0.0",
|
|
38
38
|
"semver": "7.3.4"
|
|
39
39
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"types": "./index.d.ts",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "7bedb3967ab817cbb5b8955b36f282a38fccdb50"
|
|
45
45
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"presets": [
|
|
9
9
|
{
|
|
10
10
|
"name": "Default minimum setup",
|
|
11
|
-
"keys": ["uiFramework", "
|
|
11
|
+
"keys": ["uiFramework", "outputDir", "configDir"]
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"properties": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@storybook/svelte"
|
|
25
25
|
],
|
|
26
26
|
"default": "@storybook/react",
|
|
27
|
-
"
|
|
27
|
+
"x-priority": "important"
|
|
28
28
|
},
|
|
29
29
|
"outputDir": {
|
|
30
30
|
"type": "string",
|
|
@@ -51,29 +51,6 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"config": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"description": "`.storybook` file configuration",
|
|
57
|
-
"properties": {
|
|
58
|
-
"configFolder": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"description": "Directory where to load Storybook configurations from."
|
|
61
|
-
},
|
|
62
|
-
"pluginPath": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Path to storybook `plugin.js` file."
|
|
65
|
-
},
|
|
66
|
-
"configPath": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"description": "Path to storybook `preview.js` file."
|
|
69
|
-
},
|
|
70
|
-
"srcRoot": {
|
|
71
|
-
"type": "string",
|
|
72
|
-
"description": "Project source path."
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"x-deprecated": "Prefer to use configDir to set the Storybook configuration directory."
|
|
76
|
-
},
|
|
77
54
|
"docsMode": {
|
|
78
55
|
"type": "boolean",
|
|
79
56
|
"description": "Build a documentation-only site using addon-docs.",
|
|
@@ -90,7 +67,8 @@
|
|
|
90
67
|
"configDir": {
|
|
91
68
|
"type": "string",
|
|
92
69
|
"description": "Directory where to load Storybook configurations from.",
|
|
93
|
-
"x-completion-type": "directory"
|
|
70
|
+
"x-completion-type": "directory",
|
|
71
|
+
"x-priority": "important"
|
|
94
72
|
},
|
|
95
73
|
"loglevel": {
|
|
96
74
|
"type": "string",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"presets": [
|
|
9
9
|
{
|
|
10
10
|
"name": "Default minimum setup",
|
|
11
|
-
"keys": ["uiFramework", "port", "
|
|
11
|
+
"keys": ["uiFramework", "port", "configDir"]
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"properties": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@storybook/svelte"
|
|
25
25
|
],
|
|
26
26
|
"default": "@storybook/react",
|
|
27
|
-
"
|
|
27
|
+
"x-priority": "important"
|
|
28
28
|
},
|
|
29
29
|
"port": {
|
|
30
30
|
"type": "number",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"configDir": {
|
|
52
52
|
"type": "string",
|
|
53
53
|
"description": "Directory where to load Storybook configurations from.",
|
|
54
|
-
"x-completion-type": "directory"
|
|
54
|
+
"x-completion-type": "directory",
|
|
55
|
+
"x-priority": "important"
|
|
55
56
|
},
|
|
56
57
|
"https": {
|
|
57
58
|
"type": "boolean",
|
|
@@ -82,33 +83,6 @@
|
|
|
82
83
|
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
|
|
83
84
|
"default": false
|
|
84
85
|
},
|
|
85
|
-
"config": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"description": ".storybook configuration.",
|
|
88
|
-
"properties": {
|
|
89
|
-
"configFolder": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"description": "Directory where to load Storybook configurations from."
|
|
92
|
-
},
|
|
93
|
-
"pluginPath": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"description": "Path to storybook plugin.js file."
|
|
96
|
-
},
|
|
97
|
-
"configPath": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"description": "Path to storybook preview.js file."
|
|
100
|
-
},
|
|
101
|
-
"babelrcPath": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"description": "Path to storybook .babelrc file."
|
|
104
|
-
},
|
|
105
|
-
"srcRoot": {
|
|
106
|
-
"type": "string",
|
|
107
|
-
"description": "Project source path."
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"x-deprecated": "Prefer to use configDir to set the Storybook configuration directory."
|
|
111
|
-
},
|
|
112
86
|
"docsMode": {
|
|
113
87
|
"type": "boolean",
|
|
114
88
|
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"index": 0
|
|
16
16
|
},
|
|
17
17
|
"x-prompt": "For which project do you want to generate Storybook configuration?",
|
|
18
|
-
"x-dropdown": "projects"
|
|
18
|
+
"x-dropdown": "projects",
|
|
19
|
+
"x-priority": "important"
|
|
19
20
|
},
|
|
20
21
|
"uiFramework": {
|
|
21
22
|
"type": "string",
|
|
@@ -30,12 +31,14 @@
|
|
|
30
31
|
"@storybook/vue3",
|
|
31
32
|
"@storybook/svelte"
|
|
32
33
|
],
|
|
33
|
-
"x-prompt": "What UI framework plugin should storybook use?"
|
|
34
|
+
"x-prompt": "What UI framework plugin should storybook use?",
|
|
35
|
+
"x-priority": "important"
|
|
34
36
|
},
|
|
35
37
|
"configureCypress": {
|
|
36
38
|
"type": "boolean",
|
|
37
39
|
"description": "Run the cypress-configure generator.",
|
|
38
|
-
"x-prompt": "Configure a cypress e2e app to run against the storybook instance?"
|
|
40
|
+
"x-prompt": "Configure a cypress e2e app to run against the storybook instance?",
|
|
41
|
+
"x-priority": "important"
|
|
39
42
|
},
|
|
40
43
|
"cypressDirectory": {
|
|
41
44
|
"type": "string",
|
|
@@ -55,7 +58,8 @@
|
|
|
55
58
|
"tsConfiguration": {
|
|
56
59
|
"type": "boolean",
|
|
57
60
|
"description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
|
|
58
|
-
"default": false
|
|
61
|
+
"default": false,
|
|
62
|
+
"x-priority": "important"
|
|
59
63
|
},
|
|
60
64
|
"standaloneConfig": {
|
|
61
65
|
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
@@ -70,7 +74,8 @@
|
|
|
70
74
|
"type": "string",
|
|
71
75
|
"enum": ["vite", "webpack"],
|
|
72
76
|
"x-prompt": "Which Storybook builder do you want to use?",
|
|
73
|
-
"default": "webpack"
|
|
77
|
+
"default": "webpack",
|
|
78
|
+
"x-priority": "important"
|
|
74
79
|
}
|
|
75
80
|
},
|
|
76
81
|
"required": ["name"],
|
|
@@ -18,14 +18,16 @@
|
|
|
18
18
|
"@storybook/svelte",
|
|
19
19
|
"@storybook/react-native"
|
|
20
20
|
],
|
|
21
|
-
"x-prompt": "What UI framework plugin should storybook use?"
|
|
21
|
+
"x-prompt": "What UI framework plugin should storybook use?",
|
|
22
|
+
"x-priority": "important"
|
|
22
23
|
},
|
|
23
24
|
"bundler": {
|
|
24
25
|
"description": "The bundler to use.",
|
|
25
26
|
"type": "string",
|
|
26
27
|
"enum": ["vite", "webpack"],
|
|
27
28
|
"x-prompt": "Which bundler do you want to use?",
|
|
28
|
-
"default": "webpack"
|
|
29
|
+
"default": "webpack",
|
|
30
|
+
"x-priority": "important"
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
}
|