@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,187 +1,187 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "GeneratorReactHost",
4
- "cli": "nx",
5
- "title": "Generate Module Federation Setup for React Consumer (Host) App",
6
- "description": "Create Module Federation configuration files for given React Consumer (Host) 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 Consumer (host) application to generate the Module Federation configuration",
22
- "pattern": "^[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"],
73
- "default": "eslint"
74
- },
75
- "dynamic": {
76
- "type": "boolean",
77
- "description": "Should the Consumer (host) application use dynamic federation?",
78
- "default": false
79
- },
80
- "skipFormat": {
81
- "description": "Skip formatting files.",
82
- "type": "boolean",
83
- "default": false,
84
- "x-priority": "internal"
85
- },
86
- "skipNxJson": {
87
- "description": "Skip updating nx.json with default options based on values provided to this app (e.g. babel, style).",
88
- "type": "boolean",
89
- "default": false,
90
- "x-priority": "internal"
91
- },
92
- "unitTestRunner": {
93
- "type": "string",
94
- "enum": ["jest", "none"],
95
- "description": "Test runner to use for unit tests.",
96
- "default": "jest"
97
- },
98
- "e2eTestRunner": {
99
- "type": "string",
100
- "enum": ["playwright", "cypress", "none"],
101
- "description": "Test runner to use for end to end (E2E) tests.",
102
- "x-prompt": "Which E2E test runner would you like to use?",
103
- "default": "playwright"
104
- },
105
- "tags": {
106
- "type": "string",
107
- "description": "Add tags to the application (used for linting).",
108
- "alias": "t"
109
- },
110
- "classComponent": {
111
- "type": "boolean",
112
- "description": "Use class components instead of functional component.",
113
- "alias": "C",
114
- "default": false
115
- },
116
- "js": {
117
- "type": "boolean",
118
- "description": "Generate JavaScript files rather than TypeScript files.",
119
- "default": false
120
- },
121
- "globalCss": {
122
- "type": "boolean",
123
- "description": "Default is false. When true, the component is generated with *.css/*.scss instead of *.module.css/*.module.scss",
124
- "default": false
125
- },
126
- "strict": {
127
- "type": "boolean",
128
- "description": "Creates an application with strict mode and strict type checking",
129
- "default": true
130
- },
131
- "setParserOptionsProject": {
132
- "type": "boolean",
133
- "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
134
- "default": false
135
- },
136
- "compiler": {
137
- "type": "string",
138
- "description": "The compiler to use",
139
- "enum": ["babel", "swc"],
140
- "default": "babel"
141
- },
142
- "remotes": {
143
- "type": "array",
144
- "description": "A list of Producer (remote) application names that the Consumer (host) application should consume.",
145
- "default": [],
146
- "x-priority": "important",
147
- "alias": "producers"
148
- },
149
- "devServerPort": {
150
- "type": "number",
151
- "description": "The port for the dev server of the Producer (remote) app.",
152
- "default": 4200,
153
- "x-priority": "important"
154
- },
155
- "ssr": {
156
- "description": "Whether to configure SSR for the Consumer (host) application",
157
- "type": "boolean",
158
- "default": false
159
- },
160
- "minimal": {
161
- "description": "Generate a React app with a minimal setup. No nx starter template.",
162
- "type": "boolean",
163
- "default": false
164
- },
165
- "typescriptConfiguration": {
166
- "type": "boolean",
167
- "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.",
168
- "default": true
169
- },
170
- "skipPackageJson": {
171
- "description": "Do not add dependencies to `package.json`.",
172
- "type": "boolean",
173
- "default": false,
174
- "x-priority": "internal"
175
- },
176
- "bundler": {
177
- "description": "The bundler to use.",
178
- "type": "string",
179
- "enum": ["rspack", "webpack"],
180
- "x-prompt": "Which bundler do you want to use to build the application?",
181
- "default": "rspack",
182
- "x-priority": "important"
183
- }
184
- },
185
- "required": ["directory"],
186
- "additionalProperties": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "GeneratorReactHost",
4
+ "cli": "nx",
5
+ "title": "Generate Module Federation Setup for React Consumer (Host) App",
6
+ "description": "Create Module Federation configuration files for given React Consumer (Host) 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 Consumer (host) application to generate the Module Federation configuration",
22
+ "pattern": "^[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"],
73
+ "default": "eslint"
74
+ },
75
+ "dynamic": {
76
+ "type": "boolean",
77
+ "description": "Should the Consumer (host) application use dynamic federation?",
78
+ "default": false
79
+ },
80
+ "skipFormat": {
81
+ "description": "Skip formatting files.",
82
+ "type": "boolean",
83
+ "default": false,
84
+ "x-priority": "internal"
85
+ },
86
+ "skipNxJson": {
87
+ "description": "Skip updating nx.json with default options based on values provided to this app (e.g. babel, style).",
88
+ "type": "boolean",
89
+ "default": false,
90
+ "x-priority": "internal"
91
+ },
92
+ "unitTestRunner": {
93
+ "type": "string",
94
+ "enum": ["jest", "none"],
95
+ "description": "Test runner to use for unit tests.",
96
+ "default": "jest"
97
+ },
98
+ "e2eTestRunner": {
99
+ "type": "string",
100
+ "enum": ["playwright", "cypress", "none"],
101
+ "description": "Test runner to use for end to end (E2E) tests.",
102
+ "x-prompt": "Which E2E test runner would you like to use?",
103
+ "default": "playwright"
104
+ },
105
+ "tags": {
106
+ "type": "string",
107
+ "description": "Add tags to the application (used for linting).",
108
+ "alias": "t"
109
+ },
110
+ "classComponent": {
111
+ "type": "boolean",
112
+ "description": "Use class components instead of functional component.",
113
+ "alias": "C",
114
+ "default": false
115
+ },
116
+ "js": {
117
+ "type": "boolean",
118
+ "description": "Generate JavaScript files rather than TypeScript files.",
119
+ "default": false
120
+ },
121
+ "globalCss": {
122
+ "type": "boolean",
123
+ "description": "Default is false. When true, the component is generated with *.css/*.scss instead of *.module.css/*.module.scss",
124
+ "default": false
125
+ },
126
+ "strict": {
127
+ "type": "boolean",
128
+ "description": "Creates an application with strict mode and strict type checking",
129
+ "default": true
130
+ },
131
+ "setParserOptionsProject": {
132
+ "type": "boolean",
133
+ "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
134
+ "default": false
135
+ },
136
+ "compiler": {
137
+ "type": "string",
138
+ "description": "The compiler to use",
139
+ "enum": ["babel", "swc"],
140
+ "default": "babel"
141
+ },
142
+ "remotes": {
143
+ "type": "array",
144
+ "description": "A list of Producer (remote) application names that the Consumer (host) application should consume.",
145
+ "default": [],
146
+ "x-priority": "important",
147
+ "alias": "producers"
148
+ },
149
+ "devServerPort": {
150
+ "type": "number",
151
+ "description": "The port for the dev server of the Producer (remote) app.",
152
+ "default": 4200,
153
+ "x-priority": "important"
154
+ },
155
+ "ssr": {
156
+ "description": "Whether to configure SSR for the Consumer (host) application",
157
+ "type": "boolean",
158
+ "default": false
159
+ },
160
+ "minimal": {
161
+ "description": "Generate a React app with a minimal setup. No nx starter template.",
162
+ "type": "boolean",
163
+ "default": false
164
+ },
165
+ "typescriptConfiguration": {
166
+ "type": "boolean",
167
+ "description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.",
168
+ "default": true
169
+ },
170
+ "skipPackageJson": {
171
+ "description": "Do not add dependencies to `package.json`.",
172
+ "type": "boolean",
173
+ "default": false,
174
+ "x-priority": "internal"
175
+ },
176
+ "bundler": {
177
+ "description": "The bundler to use.",
178
+ "type": "string",
179
+ "enum": ["rspack", "webpack"],
180
+ "x-prompt": "Which bundler do you want to use to build the application?",
181
+ "default": "rspack",
182
+ "x-priority": "important"
183
+ }
184
+ },
185
+ "required": ["directory"],
186
+ "additionalProperties": false
187
187
  }
@@ -1,33 +1,33 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxReactNgInit",
4
- "title": "Init React Plugin",
5
- "description": "Initialize a React Plugin.",
6
- "cli": "nx",
7
- "type": "object",
8
- "properties": {
9
- "skipFormat": {
10
- "description": "Skip formatting files.",
11
- "type": "boolean",
12
- "default": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxReactNgInit",
4
+ "title": "Init React Plugin",
5
+ "description": "Initialize a React 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
+ "useReactRouterPlugin": {
26
+ "type": "boolean",
27
+ "x-priority": "internal",
28
+ "description": "Add the @nx/react/router-plugin to the nx.json plugins array. Only use this if using React Router for SSR/RSC.",
29
+ "default": false
30
+ }
13
31
  },
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
- "useReactRouterPlugin": {
26
- "type": "boolean",
27
- "x-priority": "internal",
28
- "description": "Add the @nx/react/router-plugin to the nx.json plugins array. Only use this if using React Router for SSR/RSC.",
29
- "default": false
30
- }
31
- },
32
- "required": []
32
+ "required": []
33
33
  }