@nx/nuxt 22.7.0-beta.7 → 22.7.0-beta.9
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/generators.json +23 -23
- package/migrations.json +32 -32
- package/package.json +8 -8
- package/src/generators/application/schema.json +119 -119
- package/src/generators/init/schema.json +30 -30
- package/src/generators/storybook-configuration/schema.json +77 -77
package/generators.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
"name": "Nx Nuxt",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"extends": ["@nx/vue"],
|
|
5
|
+
"generators": {
|
|
6
|
+
"init": {
|
|
7
|
+
"factory": "./src/generators/init/init",
|
|
8
|
+
"schema": "./src/generators/init/schema.json",
|
|
9
|
+
"description": "Initialize the `@nx/nuxt` plugin.",
|
|
10
|
+
"aliases": ["ng-add"],
|
|
11
|
+
"hidden": true
|
|
12
|
+
},
|
|
13
|
+
"application": {
|
|
14
|
+
"factory": "./src/generators/application/application#applicationGeneratorInternal",
|
|
15
|
+
"schema": "./src/generators/application/schema.json",
|
|
16
|
+
"aliases": ["app"],
|
|
17
|
+
"description": "Create a Nuxt application."
|
|
18
|
+
},
|
|
19
|
+
"storybook-configuration": {
|
|
20
|
+
"factory": "./src/generators/storybook-configuration/configuration",
|
|
21
|
+
"schema": "./src/generators/storybook-configuration/schema.json",
|
|
22
|
+
"description": "Set up storybook for a Nuxt app.",
|
|
23
|
+
"hidden": false
|
|
24
|
+
}
|
|
24
25
|
}
|
|
25
|
-
}
|
|
26
26
|
}
|
package/migrations.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-22-2-0-create-ai-instructions-for-nuxt-4": {
|
|
4
|
+
"version": "22.2.0-beta.0",
|
|
5
|
+
"description": "Create AI Instructions to help migrate workspaces to Nuxt 4.",
|
|
6
|
+
"implementation": "./src/migrations/update-22-2-0/create-ai-instructions-for-nuxt-4"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"packageJsonUpdates": {
|
|
10
|
+
"22.2.0": {
|
|
11
|
+
"version": "22.2.0-beta.0",
|
|
12
|
+
"packages": {
|
|
13
|
+
"nuxt": {
|
|
14
|
+
"version": "^4.0.0",
|
|
15
|
+
"alwaysAddToPackageJson": false
|
|
16
|
+
},
|
|
17
|
+
"@nuxt/eslint-config": {
|
|
18
|
+
"version": "^1.10.0",
|
|
19
|
+
"alwaysAddToPackageJson": false
|
|
20
|
+
},
|
|
21
|
+
"@nuxt/kit": {
|
|
22
|
+
"version": "^4.0.0",
|
|
23
|
+
"alwaysAddToPackageJson": false
|
|
24
|
+
},
|
|
25
|
+
"@nuxt/schema": {
|
|
26
|
+
"version": "^4.0.0",
|
|
27
|
+
"alwaysAddToPackageJson": false
|
|
28
|
+
},
|
|
29
|
+
"@nuxt/devtools": {
|
|
30
|
+
"version": "^3.0.0",
|
|
31
|
+
"alwaysAddToPackageJson": false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
|
-
}
|
|
34
35
|
}
|
|
35
|
-
}
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nuxt plugin for Nx contains executors and generators for managing Nuxt applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"tslib": "^2.3.0",
|
|
47
47
|
"@nuxt/kit": "^3.10.0 || ^4.0.0",
|
|
48
|
-
"@nx/devkit": "22.7.0-beta.
|
|
49
|
-
"@nx/js": "22.7.0-beta.
|
|
50
|
-
"@nx/eslint": "22.7.0-beta.
|
|
51
|
-
"@nx/vue": "22.7.0-beta.
|
|
52
|
-
"@nx/vite": "22.7.0-beta.
|
|
53
|
-
"@nx/vitest": "22.7.0-beta.
|
|
48
|
+
"@nx/devkit": "22.7.0-beta.9",
|
|
49
|
+
"@nx/js": "22.7.0-beta.9",
|
|
50
|
+
"@nx/eslint": "22.7.0-beta.9",
|
|
51
|
+
"@nx/vue": "22.7.0-beta.9",
|
|
52
|
+
"@nx/vite": "22.7.0-beta.9",
|
|
53
|
+
"@nx/vitest": "22.7.0-beta.9",
|
|
54
54
|
"semver": "^7.5.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"nx": "22.7.0-beta.
|
|
57
|
+
"nx": "22.7.0-beta.9"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@nuxt/schema": "^3.10.0 || ^4.0.0"
|
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxNuxtApp",
|
|
5
|
+
"title": "Create a Nuxt Application for Nx",
|
|
6
|
+
"description": "Create a Nuxt Application for Nx.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"directory": {
|
|
10
|
+
"description": "The directory of the new application.",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"alias": "dir",
|
|
13
|
+
"$default": {
|
|
14
|
+
"$source": "argv",
|
|
15
|
+
"index": 0
|
|
16
|
+
},
|
|
17
|
+
"x-prompt": "Which directory do you want to create the application in?"
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"description": "The name of the application.",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
|
23
|
+
"x-priority": "important"
|
|
24
|
+
},
|
|
25
|
+
"skipFormat": {
|
|
26
|
+
"description": "Skip formatting files.",
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false,
|
|
29
|
+
"x-priority": "internal"
|
|
30
|
+
},
|
|
31
|
+
"linter": {
|
|
32
|
+
"description": "The tool to use for running lint checks.",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["eslint", "none"],
|
|
35
|
+
"default": "none",
|
|
36
|
+
"x-prompt": "Which linter would you like to use?",
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"unitTestRunner": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["vitest", "none"],
|
|
42
|
+
"description": "Test runner to use for unit tests.",
|
|
43
|
+
"x-prompt": "Which unit test runner would you like to use?",
|
|
44
|
+
"default": "none",
|
|
45
|
+
"x-priority": "important"
|
|
46
|
+
},
|
|
47
|
+
"e2eTestRunner": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": ["playwright", "cypress", "none"],
|
|
50
|
+
"description": "Test runner to use for end to end (E2E) tests.",
|
|
51
|
+
"x-prompt": "Which E2E test runner would you like to use?",
|
|
52
|
+
"default": "playwright"
|
|
53
|
+
},
|
|
54
|
+
"tags": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Add tags to the application (used for linting).",
|
|
57
|
+
"alias": "t"
|
|
58
|
+
},
|
|
59
|
+
"js": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
62
|
+
"default": false
|
|
63
|
+
},
|
|
64
|
+
"skipPackageJson": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false,
|
|
67
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
68
|
+
"x-priority": "internal"
|
|
69
|
+
},
|
|
70
|
+
"rootProject": {
|
|
71
|
+
"description": "Create an application at the root of the workspace.",
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"default": false,
|
|
74
|
+
"hidden": true,
|
|
75
|
+
"x-priority": "internal"
|
|
76
|
+
},
|
|
77
|
+
"style": {
|
|
78
|
+
"description": "The file extension to be used for style files.",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"alias": "s",
|
|
81
|
+
"default": "css",
|
|
82
|
+
"x-prompt": {
|
|
83
|
+
"message": "Which stylesheet format would you like to use?",
|
|
84
|
+
"type": "list",
|
|
85
|
+
"items": [
|
|
86
|
+
{
|
|
87
|
+
"value": "css",
|
|
88
|
+
"label": "CSS"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": "scss",
|
|
92
|
+
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"value": "less",
|
|
96
|
+
"label": "LESS [ https://lesscss.org ]"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"value": "none",
|
|
100
|
+
"label": "None"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"setParserOptionsProject": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
108
|
+
"default": false
|
|
109
|
+
},
|
|
110
|
+
"useProjectJson": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
113
|
+
},
|
|
114
|
+
"useAppDir": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"description": "Use Nuxt 4 app/ directory structure instead of src/ directory. Defaults to true for Nuxt v4, false for Nuxt v3.",
|
|
117
|
+
"x-priority": "important"
|
|
118
|
+
}
|
|
18
119
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"type": "string",
|
|
22
|
-
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
|
23
|
-
"x-priority": "important"
|
|
24
|
-
},
|
|
25
|
-
"skipFormat": {
|
|
26
|
-
"description": "Skip formatting files.",
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"default": false,
|
|
29
|
-
"x-priority": "internal"
|
|
30
|
-
},
|
|
31
|
-
"linter": {
|
|
32
|
-
"description": "The tool to use for running lint checks.",
|
|
33
|
-
"type": "string",
|
|
34
|
-
"enum": ["eslint", "none"],
|
|
35
|
-
"default": "none",
|
|
36
|
-
"x-prompt": "Which linter would you like to use?",
|
|
37
|
-
"x-priority": "important"
|
|
38
|
-
},
|
|
39
|
-
"unitTestRunner": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"enum": ["vitest", "none"],
|
|
42
|
-
"description": "Test runner to use for unit tests.",
|
|
43
|
-
"x-prompt": "Which unit test runner would you like to use?",
|
|
44
|
-
"default": "none",
|
|
45
|
-
"x-priority": "important"
|
|
46
|
-
},
|
|
47
|
-
"e2eTestRunner": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"enum": ["playwright", "cypress", "none"],
|
|
50
|
-
"description": "Test runner to use for end to end (E2E) tests.",
|
|
51
|
-
"x-prompt": "Which E2E test runner would you like to use?",
|
|
52
|
-
"default": "playwright"
|
|
53
|
-
},
|
|
54
|
-
"tags": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"description": "Add tags to the application (used for linting).",
|
|
57
|
-
"alias": "t"
|
|
58
|
-
},
|
|
59
|
-
"js": {
|
|
60
|
-
"type": "boolean",
|
|
61
|
-
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
62
|
-
"default": false
|
|
63
|
-
},
|
|
64
|
-
"skipPackageJson": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": false,
|
|
67
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
68
|
-
"x-priority": "internal"
|
|
69
|
-
},
|
|
70
|
-
"rootProject": {
|
|
71
|
-
"description": "Create an application at the root of the workspace.",
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"default": false,
|
|
74
|
-
"hidden": true,
|
|
75
|
-
"x-priority": "internal"
|
|
76
|
-
},
|
|
77
|
-
"style": {
|
|
78
|
-
"description": "The file extension to be used for style files.",
|
|
79
|
-
"type": "string",
|
|
80
|
-
"alias": "s",
|
|
81
|
-
"default": "css",
|
|
82
|
-
"x-prompt": {
|
|
83
|
-
"message": "Which stylesheet format would you like to use?",
|
|
84
|
-
"type": "list",
|
|
85
|
-
"items": [
|
|
86
|
-
{
|
|
87
|
-
"value": "css",
|
|
88
|
-
"label": "CSS"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"value": "scss",
|
|
92
|
-
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"value": "less",
|
|
96
|
-
"label": "LESS [ https://lesscss.org ]"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"value": "none",
|
|
100
|
-
"label": "None"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"setParserOptionsProject": {
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
108
|
-
"default": false
|
|
109
|
-
},
|
|
110
|
-
"useProjectJson": {
|
|
111
|
-
"type": "boolean",
|
|
112
|
-
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
113
|
-
},
|
|
114
|
-
"useAppDir": {
|
|
115
|
-
"type": "boolean",
|
|
116
|
-
"description": "Use Nuxt 4 app/ directory structure instead of src/ directory. Defaults to true for Nuxt v4, false for Nuxt v3.",
|
|
117
|
-
"x-priority": "important"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"required": ["directory"],
|
|
121
|
-
"examplesFile": "../../../docs/application-examples.md"
|
|
120
|
+
"required": ["directory"],
|
|
121
|
+
"examplesFile": "../../../docs/application-examples.md"
|
|
122
122
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxNuxtInit",
|
|
4
|
+
"title": "Init Nuxt Plugin",
|
|
5
|
+
"description": "Initialize a Nuxt Plugin.",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"skipFormat": {
|
|
10
|
+
"description": "Skip formatting files.",
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": false
|
|
13
|
+
},
|
|
14
|
+
"skipPackageJson": {
|
|
15
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"keepExistingVersions": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"x-priority": "internal",
|
|
22
|
+
"description": "Keep existing dependencies versions",
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
25
|
+
"updatePackageScripts": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"x-priority": "internal",
|
|
28
|
+
"description": "Update `package.json` scripts with inferred targets",
|
|
29
|
+
"default": false
|
|
30
|
+
}
|
|
13
31
|
},
|
|
14
|
-
"
|
|
15
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": false
|
|
18
|
-
},
|
|
19
|
-
"keepExistingVersions": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"x-priority": "internal",
|
|
22
|
-
"description": "Keep existing dependencies versions",
|
|
23
|
-
"default": false
|
|
24
|
-
},
|
|
25
|
-
"updatePackageScripts": {
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
"x-priority": "internal",
|
|
28
|
-
"description": "Update `package.json` scripts with inferred targets",
|
|
29
|
-
"default": false
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"required": []
|
|
32
|
+
"required": []
|
|
33
33
|
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxNuxtStorybookConfigure",
|
|
5
|
+
"title": "Nuxt Storybook Configure",
|
|
6
|
+
"description": "Set up Storybook for a Nuxt project.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"aliases": ["name", "projectName"],
|
|
12
|
+
"description": "Project for which to generate Storybook configuration.",
|
|
13
|
+
"$default": {
|
|
14
|
+
"$source": "argv",
|
|
15
|
+
"index": 0
|
|
16
|
+
},
|
|
17
|
+
"x-prompt": "For which project do you want to generate Storybook configuration?",
|
|
18
|
+
"x-dropdown": "projects",
|
|
19
|
+
"x-priority": "important"
|
|
20
|
+
},
|
|
21
|
+
"interactionTests": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "Set up Storybook interaction tests.",
|
|
24
|
+
"x-prompt": "Do you want to set up Storybook interaction tests?",
|
|
25
|
+
"x-priority": "important",
|
|
26
|
+
"alias": ["configureTestRunner"],
|
|
27
|
+
"default": true
|
|
28
|
+
},
|
|
29
|
+
"generateStories": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"description": "Automatically generate `*.stories.ts` files for components declared in this project?",
|
|
32
|
+
"x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
|
|
33
|
+
"default": true,
|
|
34
|
+
"x-priority": "important"
|
|
35
|
+
},
|
|
36
|
+
"configureStaticServe": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times.",
|
|
39
|
+
"x-prompt": "Configure a static file server for the storybook instance?",
|
|
40
|
+
"default": true,
|
|
41
|
+
"x-priority": "important"
|
|
42
|
+
},
|
|
43
|
+
"js": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "Generate JavaScript story files rather than TypeScript story files.",
|
|
46
|
+
"default": false
|
|
47
|
+
},
|
|
48
|
+
"tsConfiguration": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
|
|
51
|
+
"default": true
|
|
52
|
+
},
|
|
53
|
+
"linter": {
|
|
54
|
+
"description": "The tool to use for running lint checks.",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": ["eslint"],
|
|
57
|
+
"default": "eslint"
|
|
58
|
+
},
|
|
59
|
+
"ignorePaths": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"description": "Paths to ignore when looking for components.",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Path to ignore."
|
|
65
|
+
},
|
|
66
|
+
"default": [
|
|
67
|
+
"*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
|
|
68
|
+
],
|
|
69
|
+
"examples": [
|
|
70
|
+
"apps/my-app/src/not-stories/**",
|
|
71
|
+
"**/**/src/**/not-stories/**",
|
|
72
|
+
"libs/my-lib/**/*.something.ts",
|
|
73
|
+
"**/**/src/**/*.other.*",
|
|
74
|
+
"libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
20
77
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"description": "Set up Storybook interaction tests.",
|
|
24
|
-
"x-prompt": "Do you want to set up Storybook interaction tests?",
|
|
25
|
-
"x-priority": "important",
|
|
26
|
-
"alias": ["configureTestRunner"],
|
|
27
|
-
"default": true
|
|
28
|
-
},
|
|
29
|
-
"generateStories": {
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"description": "Automatically generate `*.stories.ts` files for components declared in this project?",
|
|
32
|
-
"x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
|
|
33
|
-
"default": true,
|
|
34
|
-
"x-priority": "important"
|
|
35
|
-
},
|
|
36
|
-
"configureStaticServe": {
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"description": "Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times.",
|
|
39
|
-
"x-prompt": "Configure a static file server for the storybook instance?",
|
|
40
|
-
"default": true,
|
|
41
|
-
"x-priority": "important"
|
|
42
|
-
},
|
|
43
|
-
"js": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"description": "Generate JavaScript story files rather than TypeScript story files.",
|
|
46
|
-
"default": false
|
|
47
|
-
},
|
|
48
|
-
"tsConfiguration": {
|
|
49
|
-
"type": "boolean",
|
|
50
|
-
"description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
|
|
51
|
-
"default": true
|
|
52
|
-
},
|
|
53
|
-
"linter": {
|
|
54
|
-
"description": "The tool to use for running lint checks.",
|
|
55
|
-
"type": "string",
|
|
56
|
-
"enum": ["eslint"],
|
|
57
|
-
"default": "eslint"
|
|
58
|
-
},
|
|
59
|
-
"ignorePaths": {
|
|
60
|
-
"type": "array",
|
|
61
|
-
"description": "Paths to ignore when looking for components.",
|
|
62
|
-
"items": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Path to ignore."
|
|
65
|
-
},
|
|
66
|
-
"default": [
|
|
67
|
-
"*.stories.ts,*.stories.tsx,*.stories.js,*.stories.jsx,*.stories.mdx"
|
|
68
|
-
],
|
|
69
|
-
"examples": [
|
|
70
|
-
"apps/my-app/src/not-stories/**",
|
|
71
|
-
"**/**/src/**/not-stories/**",
|
|
72
|
-
"libs/my-lib/**/*.something.ts",
|
|
73
|
-
"**/**/src/**/*.other.*",
|
|
74
|
-
"libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"required": ["project"],
|
|
79
|
-
"examplesFile": "../../../docs/storybook-configuration-examples.md"
|
|
78
|
+
"required": ["project"],
|
|
79
|
+
"examplesFile": "../../../docs/storybook-configuration-examples.md"
|
|
80
80
|
}
|