@nx/react 22.7.0-beta.8 → 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,186 +1,186 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
"
|
|
21
|
-
|
|
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
|
-
|
|
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": "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
|
-
"
|
|
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
|
}
|