@nx/react 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.
@@ -1,186 +1,186 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "GeneratorReactRemote",
4
- "cli": "nx",
5
- "title": "Generate Module Federation Setup for React Producer (Remote) App",
6
- "description": "Create Module Federation configuration files for given React Producer (Remote) Application.",
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
- "type": "string",
21
- "description": "The name of the Producer (remote) application to generate the Module Federation configuration",
22
- "pattern": "^[a-zA-Z][^:]*$",
23
- "x-priority": "important"
24
- },
25
- "dynamic": {
26
- "type": "boolean",
27
- "description": "Should the Consumer (host) application use dynamic federation?",
28
- "default": false,
29
- "x-priority": "internal"
30
- },
31
- "style": {
32
- "description": "The file extension to be used for style files.",
33
- "type": "string",
34
- "default": "css",
35
- "alias": "s",
36
- "x-prompt": {
37
- "message": "Which stylesheet format would you like to use?",
38
- "type": "list",
39
- "items": [
40
- {
41
- "value": "css",
42
- "label": "CSS"
43
- },
44
- {
45
- "value": "scss",
46
- "label": "SASS(.scss) [ https://sass-lang.com ]"
47
- },
48
- {
49
- "value": "less",
50
- "label": "LESS [ https://lesscss.org ]"
51
- },
52
- {
53
- "value": "tailwind",
54
- "label": "tailwind [ https://tailwindcss.com/ ]"
55
- },
56
- {
57
- "value": "styled-components",
58
- "label": "styled-components [ https://styled-components.com ]"
59
- },
60
- {
61
- "value": "@emotion/styled",
62
- "label": "emotion [ https://emotion.sh ]"
63
- },
64
- {
65
- "value": "styled-jsx",
66
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
67
- },
68
- {
69
- "value": "none",
70
- "label": "None"
71
- }
72
- ]
73
- }
74
- },
75
- "linter": {
76
- "description": "The tool to use for running lint checks.",
77
- "type": "string",
78
- "enum": ["eslint"],
79
- "default": "eslint"
80
- },
81
- "routing": {
82
- "type": "boolean",
83
- "description": "Generate application with routes.",
84
- "default": false
85
- },
86
- "skipFormat": {
87
- "description": "Skip formatting files.",
88
- "type": "boolean",
89
- "default": false,
90
- "x-priority": "internal"
91
- },
92
- "skipNxJson": {
93
- "description": "Skip updating nx.json with default options based on values provided to this app (e.g. babel, style).",
94
- "type": "boolean",
95
- "default": false,
96
- "x-priority": "internal"
97
- },
98
- "unitTestRunner": {
99
- "type": "string",
100
- "enum": ["jest", "none"],
101
- "description": "Test runner to use for unit tests.",
102
- "default": "jest"
103
- },
104
- "e2eTestRunner": {
105
- "type": "string",
106
- "enum": ["playwright", "cypress", "none"],
107
- "description": "Test runner to use for end to end (E2E) tests.",
108
- "x-prompt": "Which E2E test runner would you like to use?",
109
- "default": "playwright"
110
- },
111
- "tags": {
112
- "type": "string",
113
- "description": "Add tags to the application (used for linting).",
114
- "alias": "t"
115
- },
116
- "classComponent": {
117
- "type": "boolean",
118
- "description": "Use class components instead of functional component.",
119
- "alias": "C",
120
- "default": false
121
- },
122
- "js": {
123
- "type": "boolean",
124
- "description": "Generate JavaScript files rather than TypeScript files.",
125
- "default": false
126
- },
127
- "globalCss": {
128
- "type": "boolean",
129
- "description": "Default is false. When true, the component is generated with *.css/*.scss instead of *.module.css/*.module.scss.",
130
- "default": false
131
- },
132
- "strict": {
133
- "type": "boolean",
134
- "description": "Creates an application with strict mode and strict type checking.",
135
- "default": true
136
- },
137
- "setParserOptionsProject": {
138
- "type": "boolean",
139
- "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
140
- "default": false
141
- },
142
- "compiler": {
143
- "type": "string",
144
- "description": "The compiler to use.",
145
- "enum": ["babel", "swc"],
146
- "default": "babel"
147
- },
148
- "host": {
149
- "type": "string",
150
- "description": "The Consumer (host) application for this Producer (remote).",
151
- "x-priority": "important",
152
- "alias": "consumer"
153
- },
154
- "devServerPort": {
155
- "type": "number",
156
- "description": "The port for the dev server of the Producer (remote) app.",
157
- "x-priority": "important"
158
- },
159
- "ssr": {
160
- "description": "Whether to configure SSR for the Consumer (host) application",
161
- "type": "boolean",
162
- "default": false
163
- },
164
- "typescriptConfiguration": {
165
- "type": "boolean",
166
- "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.",
167
- "default": true
168
- },
169
- "skipPackageJson": {
170
- "description": "Do not add dependencies to `package.json`.",
171
- "type": "boolean",
172
- "default": false,
173
- "x-priority": "internal"
174
- },
175
- "bundler": {
176
- "description": "The bundler to use.",
177
- "type": "string",
178
- "enum": ["rspack", "webpack"],
179
- "x-prompt": "Which bundler do you want to use to build the application?",
180
- "default": "rspack",
181
- "x-priority": "important"
182
- }
183
- },
184
- "required": ["directory"],
185
- "additionalProperties": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "GeneratorReactRemote",
4
+ "cli": "nx",
5
+ "title": "Generate Module Federation Setup for React Producer (Remote) App",
6
+ "description": "Create Module Federation configuration files for given React Producer (Remote) Application.",
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
+ "type": "string",
21
+ "description": "The name of the Producer (remote) application to generate the Module Federation configuration",
22
+ "pattern": "^[a-zA-Z][^:]*$",
23
+ "x-priority": "important"
24
+ },
25
+ "dynamic": {
26
+ "type": "boolean",
27
+ "description": "Should the Consumer (host) application use dynamic federation?",
28
+ "default": false,
29
+ "x-priority": "internal"
30
+ },
31
+ "style": {
32
+ "description": "The file extension to be used for style files.",
33
+ "type": "string",
34
+ "default": "css",
35
+ "alias": "s",
36
+ "x-prompt": {
37
+ "message": "Which stylesheet format would you like to use?",
38
+ "type": "list",
39
+ "items": [
40
+ {
41
+ "value": "css",
42
+ "label": "CSS"
43
+ },
44
+ {
45
+ "value": "scss",
46
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
47
+ },
48
+ {
49
+ "value": "less",
50
+ "label": "LESS [ https://lesscss.org ]"
51
+ },
52
+ {
53
+ "value": "tailwind",
54
+ "label": "tailwind [ https://tailwindcss.com/ ]"
55
+ },
56
+ {
57
+ "value": "styled-components",
58
+ "label": "styled-components [ https://styled-components.com ]"
59
+ },
60
+ {
61
+ "value": "@emotion/styled",
62
+ "label": "emotion [ https://emotion.sh ]"
63
+ },
64
+ {
65
+ "value": "styled-jsx",
66
+ "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
67
+ },
68
+ {
69
+ "value": "none",
70
+ "label": "None"
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ "linter": {
76
+ "description": "The tool to use for running lint checks.",
77
+ "type": "string",
78
+ "enum": ["eslint"],
79
+ "default": "eslint"
80
+ },
81
+ "routing": {
82
+ "type": "boolean",
83
+ "description": "Generate application with routes.",
84
+ "default": false
85
+ },
86
+ "skipFormat": {
87
+ "description": "Skip formatting files.",
88
+ "type": "boolean",
89
+ "default": false,
90
+ "x-priority": "internal"
91
+ },
92
+ "skipNxJson": {
93
+ "description": "Skip updating nx.json with default options based on values provided to this app (e.g. babel, style).",
94
+ "type": "boolean",
95
+ "default": false,
96
+ "x-priority": "internal"
97
+ },
98
+ "unitTestRunner": {
99
+ "type": "string",
100
+ "enum": ["jest", "none"],
101
+ "description": "Test runner to use for unit tests.",
102
+ "default": "jest"
103
+ },
104
+ "e2eTestRunner": {
105
+ "type": "string",
106
+ "enum": ["playwright", "cypress", "none"],
107
+ "description": "Test runner to use for end to end (E2E) tests.",
108
+ "x-prompt": "Which E2E test runner would you like to use?",
109
+ "default": "playwright"
110
+ },
111
+ "tags": {
112
+ "type": "string",
113
+ "description": "Add tags to the application (used for linting).",
114
+ "alias": "t"
115
+ },
116
+ "classComponent": {
117
+ "type": "boolean",
118
+ "description": "Use class components instead of functional component.",
119
+ "alias": "C",
120
+ "default": false
121
+ },
122
+ "js": {
123
+ "type": "boolean",
124
+ "description": "Generate JavaScript files rather than TypeScript files.",
125
+ "default": false
126
+ },
127
+ "globalCss": {
128
+ "type": "boolean",
129
+ "description": "Default is false. When true, the component is generated with *.css/*.scss instead of *.module.css/*.module.scss.",
130
+ "default": false
131
+ },
132
+ "strict": {
133
+ "type": "boolean",
134
+ "description": "Creates an application with strict mode and strict type checking.",
135
+ "default": true
136
+ },
137
+ "setParserOptionsProject": {
138
+ "type": "boolean",
139
+ "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
140
+ "default": false
141
+ },
142
+ "compiler": {
143
+ "type": "string",
144
+ "description": "The compiler to use.",
145
+ "enum": ["babel", "swc"],
146
+ "default": "babel"
147
+ },
148
+ "host": {
149
+ "type": "string",
150
+ "description": "The Consumer (host) application for this Producer (remote).",
151
+ "x-priority": "important",
152
+ "alias": "consumer"
153
+ },
154
+ "devServerPort": {
155
+ "type": "number",
156
+ "description": "The port for the dev server of the Producer (remote) app.",
157
+ "x-priority": "important"
158
+ },
159
+ "ssr": {
160
+ "description": "Whether to configure SSR for the Consumer (host) application",
161
+ "type": "boolean",
162
+ "default": false
163
+ },
164
+ "typescriptConfiguration": {
165
+ "type": "boolean",
166
+ "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.",
167
+ "default": true
168
+ },
169
+ "skipPackageJson": {
170
+ "description": "Do not add dependencies to `package.json`.",
171
+ "type": "boolean",
172
+ "default": false,
173
+ "x-priority": "internal"
174
+ },
175
+ "bundler": {
176
+ "description": "The bundler to use.",
177
+ "type": "string",
178
+ "enum": ["rspack", "webpack"],
179
+ "x-prompt": "Which bundler do you want to use to build the application?",
180
+ "default": "rspack",
181
+ "x-priority": "important"
182
+ }
183
+ },
184
+ "required": ["directory"],
185
+ "additionalProperties": false
186
186
  }
@@ -1,54 +1,54 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "GeneratorReactSSRSetup",
4
- "cli": "nx",
5
- "title": "Generate SSR setup for a React app",
6
- "description": "Create the additional configuration required to enable SSR via Express for a React application.",
7
- "type": "object",
8
- "properties": {
9
- "project": {
10
- "type": "string",
11
- "description": "The name of the application to add SSR support to.",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "What app would you like to add SSR support to?",
17
- "x-dropdown": "projects",
18
- "x-priority": "important"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "GeneratorReactSSRSetup",
4
+ "cli": "nx",
5
+ "title": "Generate SSR setup for a React app",
6
+ "description": "Create the additional configuration required to enable SSR via Express for a React application.",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "description": "The name of the application to add SSR support to.",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "What app would you like to add SSR support to?",
17
+ "x-dropdown": "projects",
18
+ "x-priority": "important"
19
+ },
20
+ "appComponentImportPath": {
21
+ "type": "string",
22
+ "description": "The import path of the <App/ > component, relative to project sourceRoot.",
23
+ "default": "app/app"
24
+ },
25
+ "serverPort": {
26
+ "type": "number",
27
+ "default": 4200,
28
+ "description": "The port for the Express server.",
29
+ "x-priority": "important"
30
+ },
31
+ "skipFormat": {
32
+ "type": "boolean",
33
+ "description": "Skip formatting the workspace after the generator completes.",
34
+ "x-priority": "internal"
35
+ },
36
+ "extraInclude": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string"
40
+ },
41
+ "hidden": true,
42
+ "description": "Extra include entries in tsconfig.",
43
+ "default": []
44
+ },
45
+ "bundler": {
46
+ "description": "The bundler to use.",
47
+ "type": "string",
48
+ "enum": ["rspack", "webpack"],
49
+ "default": "webpack"
50
+ }
19
51
  },
20
- "appComponentImportPath": {
21
- "type": "string",
22
- "description": "The import path of the <App/ > component, relative to project sourceRoot.",
23
- "default": "app/app"
24
- },
25
- "serverPort": {
26
- "type": "number",
27
- "default": 4200,
28
- "description": "The port for the Express server.",
29
- "x-priority": "important"
30
- },
31
- "skipFormat": {
32
- "type": "boolean",
33
- "description": "Skip formatting the workspace after the generator completes.",
34
- "x-priority": "internal"
35
- },
36
- "extraInclude": {
37
- "type": "array",
38
- "items": {
39
- "type": "string"
40
- },
41
- "hidden": true,
42
- "description": "Extra include entries in tsconfig.",
43
- "default": []
44
- },
45
- "bundler": {
46
- "description": "The bundler to use.",
47
- "type": "string",
48
- "enum": ["rspack", "webpack"],
49
- "default": "webpack"
50
- }
51
- },
52
- "required": ["project"],
53
- "additionalProperties": false
52
+ "required": ["project"],
53
+ "additionalProperties": false
54
54
  }
@@ -1,47 +1,47 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "cli": "nx",
4
- "$id": "NxReactTailwindSetupGenerator",
5
- "title": "Configures Tailwind CSS for an application or a buildable/publishable library.",
6
- "description": "Adds the Tailwind CSS configuration files for a given React 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"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "cli": "nx",
4
+ "$id": "NxReactTailwindSetupGenerator",
5
+ "title": "Configures Tailwind CSS for an application or a buildable/publishable library.",
6
+ "description": "Adds the Tailwind CSS configuration files for a given React 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
- "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
- }
44
- },
45
- "additionalProperties": false,
46
- "required": ["project"]
45
+ "additionalProperties": false,
46
+ "required": ["project"]
47
47
  }