@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.
- package/executors.json +16 -16
- package/generators.json +106 -106
- package/migrations.json +194 -194
- package/package.json +16 -16
- package/src/executors/module-federation-dev-server/schema.json +137 -137
- package/src/executors/module-federation-ssr-dev-server/schema.json +77 -77
- package/src/executors/module-federation-static-server/schema.json +13 -13
- package/src/generators/application/lib/bundlers/add-vite.d.ts.map +1 -1
- package/src/generators/application/lib/bundlers/add-vite.js +2 -0
- package/src/generators/application/schema.json +211 -211
- package/src/generators/component/schema.json +111 -111
- package/src/generators/component-story/schema.json +39 -39
- package/src/generators/component-test/schema.json +28 -28
- package/src/generators/cypress-component-configuration/schema.json +51 -51
- package/src/generators/federate-module/schema.json +87 -87
- package/src/generators/hook/schema.json +54 -54
- package/src/generators/host/schema.json +185 -185
- package/src/generators/init/schema.json +30 -30
- package/src/generators/library/schema.json +193 -193
- package/src/generators/redux/schema.json +46 -46
- package/src/generators/remote/schema.json +184 -184
- package/src/generators/setup-ssr/schema.json +51 -51
- package/src/generators/setup-tailwind/schema.json +44 -44
- package/src/generators/stories/schema.json +56 -56
- package/src/generators/storybook-configuration/schema.json +77 -77
|
@@ -1,187 +1,187 @@
|
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
"
|
|
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
|
}
|