@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,84 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"version": 2,
|
|
3
|
+
"continuous": true,
|
|
4
|
+
"outputCapture": "pipe",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"title": "Next Serve",
|
|
7
|
+
"description": "Serve a Next.js app.",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"dev": {
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"description": "Serve the application in the dev mode.",
|
|
13
|
+
"default": true
|
|
14
|
+
},
|
|
15
|
+
"buildTarget": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Target which builds the application.",
|
|
18
|
+
"x-priority": "important"
|
|
19
|
+
},
|
|
20
|
+
"port": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"description": "Port to listen on.",
|
|
23
|
+
"default": 4200,
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"staticMarkup": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Static markup.",
|
|
29
|
+
"default": false
|
|
30
|
+
},
|
|
31
|
+
"quiet": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "Hide error messages containing server information.",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"customServerTarget": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Target which builds the custom server."
|
|
39
|
+
},
|
|
40
|
+
"hostname": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Hostname on which the application is served."
|
|
43
|
+
},
|
|
44
|
+
"buildLibsFromSource": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Read buildable libraries from source instead of building them separately.",
|
|
47
|
+
"default": true
|
|
48
|
+
},
|
|
49
|
+
"keepAliveTimeout": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"description": "Max milliseconds to wait before closing inactive connection."
|
|
52
|
+
},
|
|
53
|
+
"turbo": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Activate Turbopack for Next.js (Next.js 15 and below). In Next.js 16+, Turbopack is enabled by default for development mode."
|
|
56
|
+
},
|
|
57
|
+
"webpack": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Use webpack bundler instead of Turbopack (Next.js 16+ only). This flag is only applicable in Next.js 16 and above where Turbopack is the default for development mode."
|
|
60
|
+
},
|
|
61
|
+
"experimentalHttps": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"description": "Enable HTTPS support for the Next.js development server."
|
|
64
|
+
},
|
|
65
|
+
"experimentalHttpsKey": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Path to a HTTPS key file."
|
|
68
|
+
},
|
|
69
|
+
"experimentalHttpsCert": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Path to a HTTPS certificate file."
|
|
72
|
+
},
|
|
73
|
+
"experimentalHttpsCa": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Path to a HTTPS certificate authority file."
|
|
76
|
+
},
|
|
77
|
+
"customServerHttps:": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"description": "Enable HTTPS support for the custom server."
|
|
80
|
+
}
|
|
14
81
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"description": "Target which builds the application.",
|
|
18
|
-
"x-priority": "important"
|
|
19
|
-
},
|
|
20
|
-
"port": {
|
|
21
|
-
"type": "number",
|
|
22
|
-
"description": "Port to listen on.",
|
|
23
|
-
"default": 4200,
|
|
24
|
-
"x-priority": "important"
|
|
25
|
-
},
|
|
26
|
-
"staticMarkup": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"description": "Static markup.",
|
|
29
|
-
"default": false
|
|
30
|
-
},
|
|
31
|
-
"quiet": {
|
|
32
|
-
"type": "boolean",
|
|
33
|
-
"description": "Hide error messages containing server information.",
|
|
34
|
-
"default": false
|
|
35
|
-
},
|
|
36
|
-
"customServerTarget": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Target which builds the custom server."
|
|
39
|
-
},
|
|
40
|
-
"hostname": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Hostname on which the application is served."
|
|
43
|
-
},
|
|
44
|
-
"buildLibsFromSource": {
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"description": "Read buildable libraries from source instead of building them separately.",
|
|
47
|
-
"default": true
|
|
48
|
-
},
|
|
49
|
-
"keepAliveTimeout": {
|
|
50
|
-
"type": "number",
|
|
51
|
-
"description": "Max milliseconds to wait before closing inactive connection."
|
|
52
|
-
},
|
|
53
|
-
"turbo": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"description": "Activate Turbopack for Next.js (Next.js 15 and below). In Next.js 16+, Turbopack is enabled by default for development mode."
|
|
56
|
-
},
|
|
57
|
-
"webpack": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"description": "Use webpack bundler instead of Turbopack (Next.js 16+ only). This flag is only applicable in Next.js 16 and above where Turbopack is the default for development mode."
|
|
60
|
-
},
|
|
61
|
-
"experimentalHttps": {
|
|
62
|
-
"type": "boolean",
|
|
63
|
-
"description": "Enable HTTPS support for the Next.js development server."
|
|
64
|
-
},
|
|
65
|
-
"experimentalHttpsKey": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "Path to a HTTPS key file."
|
|
68
|
-
},
|
|
69
|
-
"experimentalHttpsCert": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"description": "Path to a HTTPS certificate file."
|
|
72
|
-
},
|
|
73
|
-
"experimentalHttpsCa": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "Path to a HTTPS certificate authority file."
|
|
76
|
-
},
|
|
77
|
-
"customServerHttps:": {
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"description": "Enable HTTPS support for the custom server."
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"required": ["buildTarget"],
|
|
83
|
-
"examplesFile": "../../../docs/server-next-executor-examples.md"
|
|
82
|
+
"required": ["buildTarget"],
|
|
83
|
+
"examplesFile": "../../../docs/server-next-executor-examples.md"
|
|
84
84
|
}
|
|
@@ -1,155 +1,155 @@
|
|
|
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
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxNextApp",
|
|
5
|
+
"title": "Create a Next.js Application for Nx",
|
|
6
|
+
"description": "Create a Next.js 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
|
+
"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
|
+
"linter": {
|
|
70
|
+
"description": "The tool to use for running lint checks.",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"enum": ["eslint", "none"],
|
|
73
|
+
"default": "none",
|
|
74
|
+
"x-prompt": "Which linter would you like to use?",
|
|
75
|
+
"x-priority": "important"
|
|
76
|
+
},
|
|
77
|
+
"skipFormat": {
|
|
78
|
+
"description": "Skip formatting files.",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": false,
|
|
81
|
+
"x-priority": "internal"
|
|
82
|
+
},
|
|
83
|
+
"unitTestRunner": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"enum": ["jest", "none"],
|
|
86
|
+
"description": "Test runner to use for unit tests.",
|
|
87
|
+
"default": "none",
|
|
88
|
+
"x-prompt": "What unit test runner should be used?",
|
|
89
|
+
"x-priority": "important"
|
|
90
|
+
},
|
|
91
|
+
"e2eTestRunner": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": ["playwright", "cypress", "none"],
|
|
94
|
+
"description": "Test runner to use for end to end (E2E) tests.",
|
|
95
|
+
"x-prompt": "Which E2E test runner would you like to use?",
|
|
96
|
+
"default": "playwright"
|
|
97
|
+
},
|
|
98
|
+
"tags": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Add tags to the application (used for linting).",
|
|
101
|
+
"alias": "t"
|
|
102
|
+
},
|
|
103
|
+
"js": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
106
|
+
"default": false
|
|
107
|
+
},
|
|
108
|
+
"setParserOptionsProject": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
111
|
+
"default": false
|
|
112
|
+
},
|
|
113
|
+
"swc": {
|
|
114
|
+
"description": "Enable the Rust-based compiler SWC to compile JS/TS files.",
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"default": true
|
|
117
|
+
},
|
|
118
|
+
"customServer": {
|
|
119
|
+
"description": "Use a custom Express server for the Next.js application.",
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"default": false
|
|
122
|
+
},
|
|
123
|
+
"skipPackageJson": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"default": false,
|
|
126
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
127
|
+
"x-priority": "internal"
|
|
128
|
+
},
|
|
129
|
+
"appDir": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"default": true,
|
|
132
|
+
"description": "Enable the App Router for this project.",
|
|
133
|
+
"x-prompt": "Would you like to use the App Router (recommended)?"
|
|
134
|
+
},
|
|
135
|
+
"src": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"default": true,
|
|
138
|
+
"description": "Generate a `src` directory for the project.",
|
|
139
|
+
"x-prompt": "Would you like to use `src/` directory?"
|
|
140
|
+
},
|
|
141
|
+
"rootProject": {
|
|
142
|
+
"description": "Create an application at the root of the workspace.",
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"default": false,
|
|
145
|
+
"hidden": true,
|
|
146
|
+
"x-priority": "internal"
|
|
147
|
+
},
|
|
148
|
+
"useProjectJson": {
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": ["directory"],
|
|
154
|
+
"examplesFile": "../../../docs/application-examples.md"
|
|
155
155
|
}
|
|
@@ -1,93 +1,93 @@
|
|
|
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": "NxNextReactComponent",
|
|
5
|
+
"title": "Create a React Component for Next",
|
|
6
|
+
"description": "Create a React Component for Next.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"path": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The file path to the component. Relative to the current working directory.",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-prompt": "What is the component file path?",
|
|
17
|
+
"x-priority": "important"
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The component symbol name. Defaults to the last segment of the file path."
|
|
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": "tailwind",
|
|
46
|
+
"label": "tailwind [ https://tailwindcss.com/ ]"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"value": "styled-components",
|
|
50
|
+
"label": "styled-components [ https://styled-components.com ]"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"value": "@emotion/styled",
|
|
54
|
+
"label": "emotion [ https://emotion.sh ]"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"value": "styled-jsx",
|
|
58
|
+
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"value": "none",
|
|
62
|
+
"label": "None"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"skipTests": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "When true, does not create `spec.ts` test files for the new component.",
|
|
70
|
+
"default": false,
|
|
71
|
+
"x-priority": "internal"
|
|
72
|
+
},
|
|
73
|
+
"export": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"description": "When true, the component is exported from the project index.ts (if it exists).",
|
|
76
|
+
"alias": "e",
|
|
77
|
+
"default": false
|
|
78
|
+
},
|
|
79
|
+
"js": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
82
|
+
"x-deprecated": "Provide the full file path including the file extension in the `path` option. This option will be removed in Nx v21."
|
|
83
|
+
},
|
|
84
|
+
"skipFormat": {
|
|
85
|
+
"description": "Skip formatting files.",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": false,
|
|
88
|
+
"x-priority": "internal"
|
|
89
|
+
}
|
|
18
90
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"description": "The component symbol name. Defaults to the last segment of the file path."
|
|
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": "tailwind",
|
|
46
|
-
"label": "tailwind [ https://tailwindcss.com/ ]"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"value": "styled-components",
|
|
50
|
-
"label": "styled-components [ https://styled-components.com ]"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"value": "@emotion/styled",
|
|
54
|
-
"label": "emotion [ https://emotion.sh ]"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"value": "styled-jsx",
|
|
58
|
-
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"value": "none",
|
|
62
|
-
"label": "None"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"skipTests": {
|
|
68
|
-
"type": "boolean",
|
|
69
|
-
"description": "When true, does not create `spec.ts` test files for the new component.",
|
|
70
|
-
"default": false,
|
|
71
|
-
"x-priority": "internal"
|
|
72
|
-
},
|
|
73
|
-
"export": {
|
|
74
|
-
"type": "boolean",
|
|
75
|
-
"description": "When true, the component is exported from the project index.ts (if it exists).",
|
|
76
|
-
"alias": "e",
|
|
77
|
-
"default": false
|
|
78
|
-
},
|
|
79
|
-
"js": {
|
|
80
|
-
"type": "boolean",
|
|
81
|
-
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
82
|
-
"x-deprecated": "Provide the full file path including the file extension in the `path` option. This option will be removed in Nx v21."
|
|
83
|
-
},
|
|
84
|
-
"skipFormat": {
|
|
85
|
-
"description": "Skip formatting files.",
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"default": false,
|
|
88
|
-
"x-priority": "internal"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"required": ["path"],
|
|
92
|
-
"examplesFile": "../../../docs/component-examples.md"
|
|
91
|
+
"required": ["path"],
|
|
92
|
+
"examplesFile": "../../../docs/component-examples.md"
|
|
93
93
|
}
|