@nx/next 22.7.0-beta.8 → 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/executors.json +11 -11
- package/generators.json +49 -49
- package/migrations.json +79 -79
- package/package.json +10 -10
- package/src/executors/build/schema.json +91 -91
- package/src/executors/server/schema.json +81 -81
- package/src/generators/application/schema.json +153 -153
- package/src/generators/component/schema.json +90 -90
- package/src/generators/convert-to-inferred/schema.json +16 -16
- package/src/generators/custom-server/schema.json +27 -27
- package/src/generators/cypress-component-configuration/schema.json +39 -39
- package/src/generators/init/schema.json +31 -31
- package/src/generators/library/schema.json +167 -167
- package/src/generators/page/schema.json +86 -86
- package/src/generators/setup-tailwind/schema.json +44 -44
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxNextjsConvertToInferred",
|
|
4
|
+
"description": "Convert existing Next.js project(s) using `@nx/next:build` executor to use `@nx/next/plugin`.",
|
|
5
|
+
"title": "Convert a Nextjs project from executor to plugin",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project to convert from using the `@nx/next:build` executor to use `@nx/next/plugin`. If not provided, all projects using the `@nx/next:build` executor will be converted.",
|
|
11
|
+
"x-priority": "important"
|
|
12
|
+
},
|
|
13
|
+
"skipFormat": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "Whether to format files.",
|
|
16
|
+
"default": false
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
19
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
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": "NxNextCustomServer",
|
|
5
|
+
"title": "Add custom server",
|
|
6
|
+
"description": "Add a custom server to existing Next.js application.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The name of the project.",
|
|
12
|
+
"alias": "p",
|
|
13
|
+
"$default": {
|
|
14
|
+
"$source": "argv",
|
|
15
|
+
"index": 0
|
|
16
|
+
},
|
|
17
|
+
"x-dropdown": "project",
|
|
18
|
+
"x-prompt": "What is the name of the project to set up a custom server for?",
|
|
19
|
+
"x-priority": "important"
|
|
20
|
+
},
|
|
21
|
+
"compiler": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["tsc", "swc"],
|
|
24
|
+
"default": "tsc",
|
|
25
|
+
"description": "The compiler used to build the custom server."
|
|
26
|
+
}
|
|
20
27
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"enum": ["tsc", "swc"],
|
|
24
|
-
"default": "tsc",
|
|
25
|
-
"description": "The compiler used to build the custom server."
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": ["project"],
|
|
29
|
-
"examplesFile": "../../../docs/custom-server-examples.md"
|
|
28
|
+
"required": ["project"],
|
|
29
|
+
"examplesFile": "../../../docs/custom-server-examples.md"
|
|
30
30
|
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "CypressComponentConfiguration",
|
|
5
|
+
"title": "NextJS Component Testing Configuration",
|
|
6
|
+
"description": "Add Cypress Componet Testing to an existing NextJS project.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"examples": [
|
|
9
|
+
{
|
|
10
|
+
"command": "nx g @nx/next:cypress-component-configuration --project=my-next-project",
|
|
11
|
+
"description": "Add component testing to your Next project"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"command": "nx g @nx/next:cypress-component-configuration --project=my-next-project --generate-tests",
|
|
15
|
+
"description": "Add component testing to your Next project and generate component tests for your existing components"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"project": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The name of the project to add cypress component testing configuration to",
|
|
22
|
+
"x-dropdown": "projects",
|
|
23
|
+
"x-prompt": "What project should we add Cypress component testing to?",
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"generateTests": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Generate default component tests for existing components in the project",
|
|
29
|
+
"x-prompt": "Automatically generate tests for components declared in this project?",
|
|
30
|
+
"default": false,
|
|
31
|
+
"x-priority": "important"
|
|
32
|
+
},
|
|
33
|
+
"skipFormat": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"description": "Skip formatting files",
|
|
36
|
+
"default": false,
|
|
37
|
+
"x-priority": "internal"
|
|
38
|
+
}
|
|
12
39
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"description": "Add component testing to your Next project and generate component tests for your existing components"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"properties": {
|
|
19
|
-
"project": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "The name of the project to add cypress component testing configuration to",
|
|
22
|
-
"x-dropdown": "projects",
|
|
23
|
-
"x-prompt": "What project should we add Cypress component testing to?",
|
|
24
|
-
"x-priority": "important"
|
|
25
|
-
},
|
|
26
|
-
"generateTests": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"description": "Generate default component tests for existing components in the project",
|
|
29
|
-
"x-prompt": "Automatically generate tests for components declared in this project?",
|
|
30
|
-
"default": false,
|
|
31
|
-
"x-priority": "important"
|
|
32
|
-
},
|
|
33
|
-
"skipFormat": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"description": "Skip formatting files",
|
|
36
|
-
"default": false,
|
|
37
|
-
"x-priority": "internal"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"required": ["project"],
|
|
41
|
-
"examplesFile": "../../../docs/cypress-component-configuration-examples.md"
|
|
40
|
+
"required": ["project"],
|
|
41
|
+
"examplesFile": "../../../docs/cypress-component-configuration-examples.md"
|
|
42
42
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxNextNgInit",
|
|
5
|
+
"title": "Init Next Plugin",
|
|
6
|
+
"description": "Init Next Plugin.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"skipFormat": {
|
|
10
|
+
"description": "Skip formatting files.",
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": false
|
|
13
|
+
},
|
|
14
|
+
"skipPackageJson": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
18
|
+
"x-priority": "internal"
|
|
19
|
+
},
|
|
20
|
+
"keepExistingVersions": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"x-priority": "internal",
|
|
23
|
+
"description": "Keep existing dependencies versions",
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
"updatePackageScripts": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"x-priority": "internal",
|
|
29
|
+
"description": "Update `package.json` scripts with inferred targets",
|
|
30
|
+
"default": false
|
|
31
|
+
}
|
|
13
32
|
},
|
|
14
|
-
"
|
|
15
|
-
"type": "boolean",
|
|
16
|
-
"default": false,
|
|
17
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
18
|
-
"x-priority": "internal"
|
|
19
|
-
},
|
|
20
|
-
"keepExistingVersions": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"x-priority": "internal",
|
|
23
|
-
"description": "Keep existing dependencies versions",
|
|
24
|
-
"default": false
|
|
25
|
-
},
|
|
26
|
-
"updatePackageScripts": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"x-priority": "internal",
|
|
29
|
-
"description": "Update `package.json` scripts with inferred targets",
|
|
30
|
-
"default": false
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": []
|
|
33
|
+
"required": []
|
|
34
34
|
}
|
|
@@ -1,169 +1,169 @@
|
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxReactLibrary",
|
|
5
|
+
"title": "Create a React Library for Nx",
|
|
6
|
+
"description": "Create a React Library for an Nx workspace.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"directory": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "A directory where the lib is placed.",
|
|
12
|
+
"alias": "dir",
|
|
13
|
+
"$default": {
|
|
14
|
+
"$source": "argv",
|
|
15
|
+
"index": 0
|
|
16
|
+
},
|
|
17
|
+
"x-prompt": "Which directory do you want to create the library in?"
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Library name",
|
|
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
|
+
"style": {
|
|
26
|
+
"description": "The file extension to be used for style files.",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"default": "css",
|
|
29
|
+
"alias": "s",
|
|
30
|
+
"x-prompt": {
|
|
31
|
+
"message": "Which stylesheet format would you like to use?",
|
|
32
|
+
"type": "list",
|
|
33
|
+
"items": [
|
|
34
|
+
{
|
|
35
|
+
"value": "css",
|
|
36
|
+
"label": "CSS"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"value": "scss",
|
|
40
|
+
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"value": "less",
|
|
44
|
+
"label": "LESS [ https://lesscss.org ]"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "tailwind",
|
|
48
|
+
"label": "tailwind [ https://tailwindcss.com/ ]"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"value": "styled-components",
|
|
52
|
+
"label": "styled-components [ https://styled-components.com ]"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"value": "@emotion/styled",
|
|
56
|
+
"label": "emotion [ https://emotion.sh ]"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "styled-jsx",
|
|
60
|
+
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"value": "none",
|
|
64
|
+
"label": "None"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"bundler": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "The bundler to use. Choosing 'none' means this library is not buildable.",
|
|
72
|
+
"enum": ["none", "vite", "rollup"],
|
|
73
|
+
"default": "none",
|
|
74
|
+
"x-prompt": "Which bundler would you like to use to build the library? Choose 'none' to skip build setup.",
|
|
75
|
+
"x-priority": "important"
|
|
76
|
+
},
|
|
77
|
+
"linter": {
|
|
78
|
+
"description": "The tool to use for running lint checks.",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": ["eslint", "none"],
|
|
81
|
+
"default": "none",
|
|
82
|
+
"x-prompt": "Which linter would you like to use?",
|
|
83
|
+
"x-priority": "important"
|
|
84
|
+
},
|
|
85
|
+
"unitTestRunner": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": ["vitest", "jest", "none"],
|
|
88
|
+
"description": "Test runner to use for unit tests.",
|
|
89
|
+
"default": "none",
|
|
90
|
+
"x-prompt": "What unit test runner should be used?",
|
|
91
|
+
"x-priority": "important"
|
|
92
|
+
},
|
|
93
|
+
"tags": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Add tags to the library (used for linting).",
|
|
96
|
+
"alias": "t"
|
|
97
|
+
},
|
|
98
|
+
"skipFormat": {
|
|
99
|
+
"description": "Skip formatting files.",
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"default": false
|
|
102
|
+
},
|
|
103
|
+
"skipTsConfig": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"default": false,
|
|
106
|
+
"description": "Do not update tsconfig.json for development experience."
|
|
107
|
+
},
|
|
108
|
+
"routing": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"description": "Generate library with routes."
|
|
111
|
+
},
|
|
112
|
+
"appProject": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "The application project to add the library route to.",
|
|
115
|
+
"alias": "a"
|
|
116
|
+
},
|
|
117
|
+
"publishable": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"description": "Create a publishable library."
|
|
120
|
+
},
|
|
121
|
+
"buildable": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"default": false,
|
|
124
|
+
"description": "Generate a buildable library that uses rollup to bundle.",
|
|
125
|
+
"x-deprecated": "Use the `bundler` option for greater control (none, vite, rollup)."
|
|
126
|
+
},
|
|
127
|
+
"importPath": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"description": "The library name used to import it, like `@myorg/my-awesome-lib`."
|
|
130
|
+
},
|
|
131
|
+
"component": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"description": "Generate a default component.",
|
|
134
|
+
"default": true
|
|
135
|
+
},
|
|
136
|
+
"js": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
139
|
+
"default": false
|
|
140
|
+
},
|
|
141
|
+
"globalCss": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"description": "When true, the stylesheet is generated using global CSS instead of CSS modules (e.g. file is `*.css` rather than `*.module.css`).",
|
|
144
|
+
"default": false
|
|
145
|
+
},
|
|
146
|
+
"strict": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"description": "Whether to enable tsconfig strict mode or not.",
|
|
149
|
+
"default": true
|
|
150
|
+
},
|
|
151
|
+
"setParserOptionsProject": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
154
|
+
"default": false
|
|
155
|
+
},
|
|
156
|
+
"skipPackageJson": {
|
|
157
|
+
"type": "boolean",
|
|
158
|
+
"default": false,
|
|
159
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
160
|
+
"x-priority": "internal"
|
|
161
|
+
},
|
|
162
|
+
"useProjectJson": {
|
|
163
|
+
"type": "boolean",
|
|
164
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": ["directory"],
|
|
168
|
+
"examplesFile": "../../../docs/library-examples.md"
|
|
169
169
|
}
|