@nx/next 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/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,89 +1,89 @@
|
|
|
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": "NxNextReactPage",
|
|
5
|
+
"title": "Create a Page for Next",
|
|
6
|
+
"description": "Create a Page for Next.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"path": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The path to the directory where the page will be generated. Relative to the current working directory.",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-prompt": "Which directory do you want to create the page in?",
|
|
17
|
+
"x-priority": "important"
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The page symbol name. Defaults to the page directory name."
|
|
22
|
+
},
|
|
23
|
+
"style": {
|
|
24
|
+
"description": "The file extension to be used for style files.",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"alias": "s",
|
|
27
|
+
"default": "css",
|
|
28
|
+
"x-prompt": {
|
|
29
|
+
"message": "Which stylesheet format would you like to use?",
|
|
30
|
+
"type": "list",
|
|
31
|
+
"items": [
|
|
32
|
+
{
|
|
33
|
+
"value": "css",
|
|
34
|
+
"label": "CSS"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "scss",
|
|
38
|
+
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "less",
|
|
42
|
+
"label": "LESS [ https://lesscss.org ]"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "styled-components",
|
|
46
|
+
"label": "styled-components [ https://styled-components.com ]"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"value": "@emotion/styled",
|
|
50
|
+
"label": "emotion [ https://emotion.sh ]"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"value": "styled-jsx",
|
|
54
|
+
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"value": "none",
|
|
58
|
+
"label": "None"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"x-priority": "important"
|
|
63
|
+
},
|
|
64
|
+
"withTests": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "When true, creates a `spec.ts` test file for the new page.",
|
|
67
|
+
"default": false
|
|
68
|
+
},
|
|
69
|
+
"export": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "When true, the component is exported from the project `index.ts` (if it exists).",
|
|
72
|
+
"alias": "e",
|
|
73
|
+
"default": false
|
|
74
|
+
},
|
|
75
|
+
"js": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
78
|
+
"default": false
|
|
79
|
+
},
|
|
80
|
+
"skipFormat": {
|
|
81
|
+
"description": "Skip formatting files.",
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"default": false,
|
|
84
|
+
"x-priority": "internal"
|
|
85
|
+
}
|
|
18
86
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"description": "The page symbol name. Defaults to the page directory name."
|
|
22
|
-
},
|
|
23
|
-
"style": {
|
|
24
|
-
"description": "The file extension to be used for style files.",
|
|
25
|
-
"type": "string",
|
|
26
|
-
"alias": "s",
|
|
27
|
-
"default": "css",
|
|
28
|
-
"x-prompt": {
|
|
29
|
-
"message": "Which stylesheet format would you like to use?",
|
|
30
|
-
"type": "list",
|
|
31
|
-
"items": [
|
|
32
|
-
{
|
|
33
|
-
"value": "css",
|
|
34
|
-
"label": "CSS"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"value": "scss",
|
|
38
|
-
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"value": "less",
|
|
42
|
-
"label": "LESS [ https://lesscss.org ]"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"value": "styled-components",
|
|
46
|
-
"label": "styled-components [ https://styled-components.com ]"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"value": "@emotion/styled",
|
|
50
|
-
"label": "emotion [ https://emotion.sh ]"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"value": "styled-jsx",
|
|
54
|
-
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"value": "none",
|
|
58
|
-
"label": "None"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"x-priority": "important"
|
|
63
|
-
},
|
|
64
|
-
"withTests": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"description": "When true, creates a `spec.ts` test file for the new page.",
|
|
67
|
-
"default": false
|
|
68
|
-
},
|
|
69
|
-
"export": {
|
|
70
|
-
"type": "boolean",
|
|
71
|
-
"description": "When true, the component is exported from the project `index.ts` (if it exists).",
|
|
72
|
-
"alias": "e",
|
|
73
|
-
"default": false
|
|
74
|
-
},
|
|
75
|
-
"js": {
|
|
76
|
-
"type": "boolean",
|
|
77
|
-
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
78
|
-
"default": false
|
|
79
|
-
},
|
|
80
|
-
"skipFormat": {
|
|
81
|
-
"description": "Skip formatting files.",
|
|
82
|
-
"type": "boolean",
|
|
83
|
-
"default": false,
|
|
84
|
-
"x-priority": "internal"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"required": ["path"],
|
|
88
|
-
"examplesFile": "../../../docs/page-examples.md"
|
|
87
|
+
"required": ["path"],
|
|
88
|
+
"examplesFile": "../../../docs/page-examples.md"
|
|
89
89
|
}
|
|
@@ -1,47 +1,47 @@
|
|
|
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
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxNextTailwindSetupGenerator",
|
|
5
|
+
"title": "Configures Tailwind CSS for an application or a buildable/publishable library.",
|
|
6
|
+
"description": "Adds the Tailwind CSS configuration files for a Next.js project and installs, if needed, the packages required for Tailwind CSS to work.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"examples": [
|
|
9
|
+
{
|
|
10
|
+
"command": "nx g setup-tailwind --project=my-app",
|
|
11
|
+
"description": "Initialize Tailwind configuration for the `my-app` project."
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"project": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the project to add the Tailwind CSS setup for.",
|
|
18
|
+
"alias": "p",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "argv",
|
|
21
|
+
"index": 0
|
|
22
|
+
},
|
|
23
|
+
"x-dropdown": "projects",
|
|
24
|
+
"x-prompt": "What project would you like to add the Tailwind CSS setup?",
|
|
25
|
+
"x-priority": "important"
|
|
26
|
+
},
|
|
27
|
+
"buildTarget": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The name of the target used to build the project. This option is not needed in most cases.",
|
|
30
|
+
"default": "build",
|
|
31
|
+
"x-priority": "important"
|
|
32
|
+
},
|
|
33
|
+
"skipFormat": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"description": "Skips formatting the workspace after the generator completes.",
|
|
36
|
+
"x-priority": "internal"
|
|
37
|
+
},
|
|
38
|
+
"skipPackageJson": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false,
|
|
41
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
42
|
+
"x-priority": "internal"
|
|
43
|
+
}
|
|
26
44
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"description": "The name of the target used to build the project. This option is not needed in most cases.",
|
|
30
|
-
"default": "build",
|
|
31
|
-
"x-priority": "important"
|
|
32
|
-
},
|
|
33
|
-
"skipFormat": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"description": "Skips formatting the workspace after the generator completes.",
|
|
36
|
-
"x-priority": "internal"
|
|
37
|
-
},
|
|
38
|
-
"skipPackageJson": {
|
|
39
|
-
"type": "boolean",
|
|
40
|
-
"default": false,
|
|
41
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
42
|
-
"x-priority": "internal"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"additionalProperties": false,
|
|
46
|
-
"required": ["project"]
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"required": ["project"]
|
|
47
47
|
}
|