@nrwl/react 15.5.0 → 15.5.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [15.5.0](https://github.com/nrwl/nx/compare/15.4.8...15.5.0) (2023-01-13)
6
+ ## [15.5.2](https://github.com/nrwl/nx/compare/15.5.1...15.5.2) (2023-01-18)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/react",
3
- "version": "15.5.0",
3
+ "version": "15.5.2",
4
4
  "private": false,
5
5
  "description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -31,11 +31,11 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "@nrwl/devkit": "15.5.0",
35
- "@nrwl/linter": "15.5.0",
36
- "@nrwl/workspace": "15.5.0",
34
+ "@nrwl/devkit": "15.5.2",
35
+ "@nrwl/linter": "15.5.2",
36
+ "@nrwl/workspace": "15.5.2",
37
37
  "@phenomnomnominal/tsquery": "4.1.1",
38
- "chalk": "4.1.0",
38
+ "chalk": "^4.1.0",
39
39
  "enquirer": "~2.3.6",
40
40
  "minimatch": "3.0.5",
41
41
  "semver": "7.3.4"
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "types": "./index.d.ts",
47
- "gitHead": "d7d1bcf17b472cd84704717f7242eca22e2e98cd"
47
+ "gitHead": "22d6519948033a60c7281fe4bb7e0a594d9fc5a6"
48
48
  }
@@ -11,23 +11,27 @@
11
11
  "items": {
12
12
  "type": "string"
13
13
  },
14
- "description": "List of remote applications to run in development mode (i.e. using serve target)."
14
+ "description": "List of remote applications to run in development mode (i.e. using serve target).",
15
+ "x-priority": "important"
15
16
  },
16
17
  "skipRemotes": {
17
18
  "type": "array",
18
19
  "items": {
19
20
  "type": "string"
20
21
  },
21
- "description": "List of remote applications to not automatically serve, either statically or in development mode. This can be useful for multi-repository module federation setups where the host application uses a remote application from an external repository."
22
+ "description": "List of remote applications to not automatically serve, either statically or in development mode. This can be useful for multi-repository module federation setups where the host application uses a remote application from an external repository.",
23
+ "x-priority": "important"
22
24
  },
23
25
  "buildTarget": {
24
26
  "type": "string",
25
- "description": "Target which builds the application."
27
+ "description": "Target which builds the application.",
28
+ "x-priority": "important"
26
29
  },
27
30
  "port": {
28
31
  "type": "number",
29
32
  "description": "Port to listen on.",
30
- "default": 4200
33
+ "default": 4200,
34
+ "x-priority": "important"
31
35
  },
32
36
  "host": {
33
37
  "type": "string",
@@ -69,7 +73,8 @@
69
73
  "open": {
70
74
  "type": "boolean",
71
75
  "description": "Open the application in the browser.",
72
- "default": false
76
+ "default": false,
77
+ "x-priority": "important"
73
78
  },
74
79
  "allowedHosts": {
75
80
  "type": "string",
@@ -8,30 +8,35 @@
8
8
  "properties": {
9
9
  "browserTarget": {
10
10
  "type": "string",
11
- "description": "Target which builds the browser application."
11
+ "description": "Target which builds the browser application.",
12
+ "x-priority": "important"
12
13
  },
13
14
  "serverTarget": {
14
15
  "type": "string",
15
- "description": "Target which builds the server application."
16
+ "description": "Target which builds the server application.",
17
+ "x-priority": "important"
16
18
  },
17
19
  "port": {
18
20
  "type": "number",
19
21
  "description": "The port to be set on `process.env.PORT` for use in the server.",
20
- "default": 4200
22
+ "default": 4200,
23
+ "x-priority": "important"
21
24
  },
22
25
  "devRemotes": {
23
26
  "type": "array",
24
27
  "items": {
25
28
  "type": "string"
26
29
  },
27
- "description": "List of remote applications to run in development mode (i.e. using serve target)."
30
+ "description": "List of remote applications to run in development mode (i.e. using serve target).",
31
+ "x-priority": "important"
28
32
  },
29
33
  "skipRemotes": {
30
34
  "type": "array",
31
35
  "items": {
32
36
  "type": "string"
33
37
  },
34
- "description": "List of remote applications to not automatically serve, either statically or in development mode. This can be useful for multi-repository module federation setups where the host application uses a remote application from an external repository."
38
+ "description": "List of remote applications to not automatically serve, either statically or in development mode. This can be useful for multi-repository module federation setups where the host application uses a remote application from an external repository.",
39
+ "x-priority": "important"
35
40
  },
36
41
  "host": {
37
42
  "type": "string",
@@ -28,12 +28,14 @@
28
28
  "index": 0
29
29
  },
30
30
  "x-prompt": "What name would you like to use for the application?",
31
- "pattern": "^[a-zA-Z].*$"
31
+ "pattern": "^[a-zA-Z].*$",
32
+ "x-priority": "important"
32
33
  },
33
34
  "directory": {
34
35
  "description": "The directory of the new application.",
35
36
  "type": "string",
36
- "alias": "dir"
37
+ "alias": "dir",
38
+ "x-priority": "important"
37
39
  },
38
40
  "style": {
39
41
  "description": "The file extension to be used for style files.",
@@ -94,12 +96,14 @@
94
96
  "skipFormat": {
95
97
  "description": "Skip formatting files.",
96
98
  "type": "boolean",
97
- "default": false
99
+ "default": false,
100
+ "x-priority": "hidden"
98
101
  },
99
102
  "skipWorkspaceJson": {
100
103
  "description": "Skip updating `workspace.json` with default options based on values provided to this app (e.g. babel, style).",
101
104
  "type": "boolean",
102
- "default": false
105
+ "default": false,
106
+ "x-priority": "hidden"
103
107
  },
104
108
  "unitTestRunner": {
105
109
  "type": "string",
@@ -168,7 +172,8 @@
168
172
  "skipPackageJson": {
169
173
  "description": "Do not add dependencies to `package.json`.",
170
174
  "type": "boolean",
171
- "default": false
175
+ "default": false,
176
+ "x-priority": "hidden"
172
177
  },
173
178
  "rootProject": {
174
179
  "description": "Create a application at the root of the workspace",
@@ -181,7 +186,8 @@
181
186
  "type": "string",
182
187
  "enum": ["vite", "webpack"],
183
188
  "x-prompt": "Which bundler do you want to use to build the application?",
184
- "default": "webpack"
189
+ "default": "webpack",
190
+ "x-priority": "important"
185
191
  },
186
192
  "minimal": {
187
193
  "description": "Generate a React app with a minimal setup, no separate test files.",
@@ -23,7 +23,8 @@
23
23
  "$default": {
24
24
  "$source": "projectName"
25
25
  },
26
- "x-prompt": "What is the name of the project for this component?"
26
+ "x-prompt": "What is the name of the project for this component?",
27
+ "x-priority": "important"
27
28
  },
28
29
  "name": {
29
30
  "type": "string",
@@ -32,7 +33,8 @@
32
33
  "$source": "argv",
33
34
  "index": 0
34
35
  },
35
- "x-prompt": "What name would you like to use for the component?"
36
+ "x-prompt": "What name would you like to use for the component?",
37
+ "x-priority": "important"
36
38
  },
37
39
  "style": {
38
40
  "description": "The file extension to be used for style files.",
@@ -83,12 +85,14 @@
83
85
  "skipTests": {
84
86
  "type": "boolean",
85
87
  "description": "When true, does not create `spec.ts` test files for the new component.",
86
- "default": false
88
+ "default": false,
89
+ "x-priority": "internal"
87
90
  },
88
91
  "directory": {
89
92
  "type": "string",
90
93
  "description": "Create the component under this directory (can be nested).",
91
- "alias": "dir"
94
+ "alias": "dir",
95
+ "x-priority": "important"
92
96
  },
93
97
  "flat": {
94
98
  "type": "boolean",
@@ -14,13 +14,15 @@
14
14
  "$source": "projectName",
15
15
  "index": 0
16
16
  },
17
- "x-prompt": "What's name of the project for which to generate tests?"
17
+ "x-prompt": "What's name of the project for which to generate tests?",
18
+ "x-priority": "important"
18
19
  },
19
20
  "componentPath": {
20
21
  "type": "string",
21
22
  "description": "Relative path to the component file from the library root?",
22
23
  "examples": ["lib/components"],
23
- "x-prompt": "What's path of the component relative to the project's lib root for which to generate a test?"
24
+ "x-prompt": "What's path of the component relative to the project's lib root for which to generate a test?",
25
+ "x-priority": "important"
24
26
  },
25
27
  "js": {
26
28
  "type": "boolean",
@@ -15,13 +15,15 @@
15
15
  "$source": "projectName",
16
16
  "index": 0
17
17
  },
18
- "x-prompt": "What's name of the project where the component lives?"
18
+ "x-prompt": "What's name of the project where the component lives?",
19
+ "x-priority": "important"
19
20
  },
20
21
  "componentPath": {
21
22
  "type": "string",
22
23
  "description": "Relative path to the component file from the library root.",
23
24
  "examples": ["lib/components"],
24
- "x-prompt": "What's path of the component relative to the project's lib root?"
25
+ "x-prompt": "What's path of the component relative to the project's lib root?",
26
+ "x-priority": "important"
25
27
  }
26
28
  },
27
29
  "required": ["project", "componentPath"]
@@ -16,12 +16,14 @@
16
16
  "type": "string",
17
17
  "description": "The name of the project the component is apart of",
18
18
  "x-dropdown": "projects",
19
- "x-prompt": "What project is this component apart of?"
19
+ "x-prompt": "What project is this component apart of?",
20
+ "x-priority": "important"
20
21
  },
21
22
  "componentPath": {
22
23
  "type": "string",
23
24
  "description": "Path to component, from the project source root",
24
- "x-prompt": "What is the path to the component?"
25
+ "x-prompt": "What is the path to the component?",
26
+ "x-priority": "important"
25
27
  }
26
28
  },
27
29
  "required": ["project", "componentPath"],
@@ -20,13 +20,15 @@
20
20
  "type": "string",
21
21
  "description": "The name of the project to add cypress component testing configuration to",
22
22
  "x-dropdown": "projects",
23
- "x-prompt": "What project should we add Cypress component testing to?"
23
+ "x-prompt": "What project should we add Cypress component testing to?",
24
+ "x-priority": "important"
24
25
  },
25
26
  "generateTests": {
26
27
  "type": "boolean",
27
28
  "description": "Generate default component tests for existing components in the project",
28
29
  "x-prompt": "Automatically generate tests for components declared in this project?",
29
- "default": false
30
+ "default": false,
31
+ "x-priority": "important"
30
32
  },
31
33
  "buildTarget": {
32
34
  "type": "string",
@@ -36,13 +38,15 @@
36
38
  "skipFormat": {
37
39
  "type": "boolean",
38
40
  "description": "Skip formatting files",
39
- "default": false
41
+ "default": false,
42
+ "x-priority": "internal"
40
43
  },
41
44
  "bundler": {
42
45
  "description": "The bundler to use for Cypress Component Testing.",
43
46
  "type": "string",
44
47
  "enum": ["vite", "webpack"],
45
- "hidden": true
48
+ "hidden": true,
49
+ "x-priority": "internal"
46
50
  }
47
51
  },
48
52
  "required": ["project"],
@@ -19,7 +19,8 @@
19
19
  "$default": {
20
20
  "$source": "projectName"
21
21
  },
22
- "x-prompt": "What is the name of the project for this hook?"
22
+ "x-prompt": "What is the name of the project for this hook?",
23
+ "x-priority": "important"
23
24
  },
24
25
  "name": {
25
26
  "type": "string",
@@ -28,7 +29,8 @@
28
29
  "$source": "argv",
29
30
  "index": 0
30
31
  },
31
- "x-prompt": "What name would you like to use for the hook?"
32
+ "x-prompt": "What name would you like to use for the hook?",
33
+ "x-priority": "important"
32
34
  },
33
35
  "js": {
34
36
  "type": "boolean",
@@ -38,11 +40,13 @@
38
40
  "skipTests": {
39
41
  "type": "boolean",
40
42
  "description": "When true, does not create `spec.ts` test files for the new hook.",
41
- "default": false
43
+ "default": false,
44
+ "x-priority": "internal"
42
45
  },
43
46
  "directory": {
44
47
  "type": "string",
45
- "description": "Create the hook under this directory (can be nested)."
48
+ "description": "Create the hook under this directory (can be nested).",
49
+ "x-priority": "important"
46
50
  },
47
51
  "flat": {
48
52
  "type": "boolean",
@@ -14,12 +14,14 @@
14
14
  "index": 0
15
15
  },
16
16
  "x-prompt": "What name would you like to use as the host application?",
17
- "pattern": "^[a-zA-Z].*$"
17
+ "pattern": "^[a-zA-Z].*$",
18
+ "x-priority": "important"
18
19
  },
19
20
  "directory": {
20
21
  "description": "The directory of the new application.",
21
22
  "type": "string",
22
- "alias": "dir"
23
+ "alias": "dir",
24
+ "x-priority": "important"
23
25
  },
24
26
  "style": {
25
27
  "description": "The file extension to be used for style files.",
@@ -74,12 +76,14 @@
74
76
  "skipFormat": {
75
77
  "description": "Skip formatting files.",
76
78
  "type": "boolean",
77
- "default": false
79
+ "default": false,
80
+ "x-priority": "internal"
78
81
  },
79
82
  "skipWorkspaceJson": {
80
83
  "description": "Skip updating workspace.json with default options based on values provided to this app (e.g. babel, style).",
81
84
  "type": "boolean",
82
- "default": false
85
+ "default": false,
86
+ "x-priority": "internal"
83
87
  },
84
88
  "unitTestRunner": {
85
89
  "type": "string",
@@ -143,12 +147,14 @@
143
147
  "remotes": {
144
148
  "type": "array",
145
149
  "description": "A list of remote application names that the host application should consume.",
146
- "default": []
150
+ "default": [],
151
+ "x-priority": "important"
147
152
  },
148
153
  "devServerPort": {
149
154
  "type": "number",
150
155
  "description": "The port for the dev server of the remote app.",
151
- "default": 4200
156
+ "default": 4200,
157
+ "x-priority": "important"
152
158
  },
153
159
  "ssr": {
154
160
  "description": "Whether to configure SSR for the host application",
@@ -24,12 +24,14 @@
24
24
  "index": 0
25
25
  },
26
26
  "x-prompt": "What name would you like to use for the library?",
27
- "pattern": "^[a-zA-Z].*$"
27
+ "pattern": "^[a-zA-Z].*$",
28
+ "x-priority": "important"
28
29
  },
29
30
  "directory": {
30
31
  "type": "string",
31
32
  "description": "A directory where the lib is placed.",
32
- "alias": "dir"
33
+ "alias": "dir",
34
+ "x-priority": "important"
33
35
  },
34
36
  "style": {
35
37
  "description": "The file extension to be used for style files.",
@@ -96,12 +98,14 @@
96
98
  "skipFormat": {
97
99
  "description": "Skip formatting files.",
98
100
  "type": "boolean",
99
- "default": false
101
+ "default": false,
102
+ "x-priority": "internal"
100
103
  },
101
104
  "skipTsConfig": {
102
105
  "type": "boolean",
103
106
  "default": false,
104
- "description": "Do not update `tsconfig.json` for development experience."
107
+ "description": "Do not update `tsconfig.json` for development experience.",
108
+ "x-priority": "internal"
105
109
  },
106
110
  "pascalCaseFiles": {
107
111
  "type": "boolean",
@@ -166,7 +170,8 @@
166
170
  "description": "The bundler to use. Choosing 'none' means this library is not buildable.",
167
171
  "enum": ["none", "vite", "rollup"],
168
172
  "default": "none",
169
- "x-prompt": "Which bundler would you like to use to build the library? Choose 'none' to skip build setup."
173
+ "x-prompt": "Which bundler would you like to use to build the library? Choose 'none' to skip build setup.",
174
+ "x-priority": "important"
170
175
  },
171
176
  "compiler": {
172
177
  "type": "string",
@@ -177,7 +182,8 @@
177
182
  "skipPackageJson": {
178
183
  "description": "Do not add dependencies to `package.json`.",
179
184
  "type": "boolean",
180
- "default": false
185
+ "default": false,
186
+ "x-priority": "internal"
181
187
  },
182
188
  "minimal": {
183
189
  "description": "Create a React library with a minimal setup, no separate test files.",
@@ -12,7 +12,8 @@
12
12
  "$default": {
13
13
  "$source": "argv",
14
14
  "index": 0
15
- }
15
+ },
16
+ "x-priority": "important"
16
17
  },
17
18
  "project": {
18
19
  "type": "string",
@@ -21,13 +22,15 @@
21
22
  "$default": {
22
23
  "$source": "projectName"
23
24
  },
24
- "x-prompt": "What is the name of the project for this slice?"
25
+ "x-prompt": "What is the name of the project for this slice?",
26
+ "x-priority": "important"
25
27
  },
26
28
  "directory": {
27
29
  "type": "string",
28
30
  "alias": "dir",
29
31
  "default": "",
30
- "description": "The name of the folder used to contain/group the generated Redux files."
32
+ "description": "The name of the folder used to contain/group the generated Redux files.",
33
+ "x-priority": "important"
31
34
  },
32
35
  "appProject": {
33
36
  "type": "string",
@@ -14,12 +14,14 @@
14
14
  "index": 0
15
15
  },
16
16
  "x-prompt": "What name would you like to use as the remote application?",
17
- "pattern": "^[a-zA-Z].*$"
17
+ "pattern": "^[a-zA-Z].*$",
18
+ "x-priority": "important"
18
19
  },
19
20
  "directory": {
20
21
  "description": "The directory of the new application.",
21
22
  "type": "string",
22
- "alias": "dir"
23
+ "alias": "dir",
24
+ "x-priority": "important"
23
25
  },
24
26
  "style": {
25
27
  "description": "The file extension to be used for style files.",
@@ -79,12 +81,14 @@
79
81
  "skipFormat": {
80
82
  "description": "Skip formatting files.",
81
83
  "type": "boolean",
82
- "default": false
84
+ "default": false,
85
+ "x-priority": "internal"
83
86
  },
84
87
  "skipWorkspaceJson": {
85
88
  "description": "Skip updating workspace.json with default options based on values provided to this app (e.g. babel, style).",
86
89
  "type": "boolean",
87
- "default": false
90
+ "default": false,
91
+ "x-priority": "internal"
88
92
  },
89
93
  "unitTestRunner": {
90
94
  "type": "string",
@@ -147,12 +151,14 @@
147
151
  },
148
152
  "host": {
149
153
  "type": "string",
150
- "description": "The host / shell application for this remote."
154
+ "description": "The host / shell application for this remote.",
155
+ "x-priority": "important"
151
156
  },
152
157
  "devServerPort": {
153
158
  "type": "number",
154
159
  "description": "The port for the dev server of the remote app.",
155
- "default": 4200
160
+ "default": 4200,
161
+ "x-priority": "important"
156
162
  },
157
163
  "ssr": {
158
164
  "description": "Whether to configure SSR for the host application",
@@ -14,7 +14,8 @@
14
14
  "index": 0
15
15
  },
16
16
  "x-prompt": "What app would you like to add SSR support to?",
17
- "x-dropdown": "projects"
17
+ "x-dropdown": "projects",
18
+ "x-priority": "important"
18
19
  },
19
20
  "appComponentImportPath": {
20
21
  "type": "string",
@@ -24,11 +25,13 @@
24
25
  "serverPort": {
25
26
  "type": "number",
26
27
  "default": 4200,
27
- "description": "The port for the Express server."
28
+ "description": "The port for the Express server.",
29
+ "x-priority": "important"
28
30
  },
29
31
  "skipFormat": {
30
32
  "type": "boolean",
31
- "description": "Skip formatting the workspace after the generator completes."
33
+ "description": "Skip formatting the workspace after the generator completes.",
34
+ "x-priority": "internal"
32
35
  },
33
36
  "extraInclude": {
34
37
  "type": "array",
@@ -21,21 +21,25 @@
21
21
  "index": 0
22
22
  },
23
23
  "x-dropdown": "projects",
24
- "x-prompt": "What project would you like to add the Tailwind CSS setup?"
24
+ "x-prompt": "What project would you like to add the Tailwind CSS setup?",
25
+ "x-priority": "important"
25
26
  },
26
27
  "buildTarget": {
27
28
  "type": "string",
28
29
  "description": "The name of the target used to build the project. This option is not needed in most cases.",
29
- "default": "build"
30
+ "default": "build",
31
+ "x-priority": "important"
30
32
  },
31
33
  "skipFormat": {
32
34
  "type": "boolean",
33
- "description": "Skips formatting the workspace after the generator completes."
35
+ "description": "Skips formatting the workspace after the generator completes.",
36
+ "x-priority": "internal"
34
37
  },
35
38
  "skipPackageJson": {
36
39
  "type": "boolean",
37
40
  "default": false,
38
- "description": "Do not add dependencies to `package.json`."
41
+ "description": "Do not add dependencies to `package.json`.",
42
+ "x-priority": "internal"
39
43
  }
40
44
  },
41
45
  "additionalProperties": false,
@@ -14,12 +14,14 @@
14
14
  "$source": "projectName",
15
15
  "index": 0
16
16
  },
17
- "x-prompt": "For which project do you want to generate stories?"
17
+ "x-prompt": "For which project do you want to generate stories?",
18
+ "x-priority": "important"
18
19
  },
19
20
  "generateCypressSpecs": {
20
21
  "type": "boolean",
21
22
  "description": "Automatically generate `*.spec.ts` files in the cypress e2e app generated by the cypress-configure generator.",
22
- "x-prompt": "Do you want to generate Cypress specs as well?"
23
+ "x-prompt": "Do you want to generate Cypress specs as well?",
24
+ "x-priority": "important"
23
25
  },
24
26
  "cypressProject": {
25
27
  "type": "string",
@@ -15,25 +15,29 @@
15
15
  "index": 0
16
16
  },
17
17
  "x-prompt": "For which project do you want to generate Storybook configuration?",
18
- "x-dropdown": "projects"
18
+ "x-dropdown": "projects",
19
+ "x-priority": "important"
19
20
  },
20
21
  "configureCypress": {
21
22
  "type": "boolean",
22
23
  "description": "Run the cypress-configure generator.",
23
24
  "x-prompt": "Configure a cypress e2e app to run against the storybook instance?",
24
- "default": true
25
+ "default": true,
26
+ "x-priority": "important"
25
27
  },
26
28
  "generateStories": {
27
29
  "type": "boolean",
28
30
  "description": "Automatically generate `*.stories.ts` files for components declared in this project?",
29
31
  "x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
30
- "default": true
32
+ "default": true,
33
+ "x-priority": "important"
31
34
  },
32
35
  "generateCypressSpecs": {
33
36
  "type": "boolean",
34
37
  "description": "Automatically generate test files in the Cypress E2E app generated by the `cypress-configure` generator.",
35
38
  "x-prompt": "Automatically generate test files in the Cypress E2E app generated by the cypress-configure generator?",
36
- "default": true
39
+ "default": true,
40
+ "x-priority": "important"
37
41
  },
38
42
  "cypressDirectory": {
39
43
  "type": "string",
@@ -80,7 +84,8 @@
80
84
  },
81
85
  "bundler": {
82
86
  "description": "The Storybook builder to use.",
83
- "enum": ["vite", "webpack"]
87
+ "enum": ["vite", "webpack"],
88
+ "x-priority": "important"
84
89
  }
85
90
  },
86
91
  "required": ["name"],