Skip to content

Commit b6104d2

Browse files
feat: migrate workspace to Nx 20 (#1136)
Closes #1134 BREAKING CHANGE: generator option `name` is replaced by `directory`, and the minimal required Nx version is `20.x`.
1 parent 73a1641 commit b6104d2

File tree

80 files changed

+3680
-3155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3680
-3155
lines changed

.all-contributorsrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
},
361361
{
362362
"login": "pawel-twardziak",
363-
"name": "pawel-twardziak",
363+
"name": "Paweł Twardziak",
364364
"avatar_url": "https://avatars.githubusercontent.com/u/180847852?v=4",
365365
"profile": "https://github.com/pawel-twardziak",
366366
"contributions": ["code"]

docs/docs/preact/generators.md

+20-16
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,13 @@ nx g application ... --dry-run
2828

2929
### Options
3030

31-
#### name (_**required**_)
32-
33-
Type: `string`
34-
35-
#### directory
31+
#### directory (_**required**_)
3632

3733
Alias(es): d
3834

3935
Type: `string`
4036

41-
A directory where the lib is placed.
37+
A directory where the project is placed.
4238

4339
#### e2eTestRunner
4440

@@ -64,10 +60,18 @@ Default: `eslint`
6460

6561
Type: `string`
6662

67-
Possible values: `eslint`
63+
Possible values: `eslint`, `none`
6864

6965
The tool to use for running lint checks.
7066

67+
#### name
68+
69+
Alias(es): n
70+
71+
Type: `string`
72+
73+
A name of the project.
74+
7175
#### port
7276

7377
Default: `5000`
@@ -132,10 +136,14 @@ nx g library ... --dry-run
132136

133137
### Options
134138

135-
#### name (_**required**_)
139+
#### directory (_**required**_)
140+
141+
Alias(es): d
136142

137143
Type: `string`
138144

145+
A directory where the project is placed.
146+
139147
#### buildable
140148

141149
Default: `false`
@@ -144,14 +152,6 @@ Type: `boolean`
144152

145153
Generate a buildable library.
146154

147-
#### directory
148-
149-
Alias(es): d
150-
151-
Type: `string`
152-
153-
A directory where the lib is placed.
154-
155155
#### e2eTestRunner
156156

157157
Default: `cypress`
@@ -178,6 +178,10 @@ Possible values: `eslint`
178178

179179
The tool to use for running lint checks.
180180

181+
#### name
182+
183+
Type: `string`
184+
181185
#### publishable
182186

183187
Type: `boolean`

docs/docs/solid/generators.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,13 @@ nx g application ... --dry-run
2828

2929
### Options
3030

31-
#### name (_**required**_)
32-
33-
Type: `string`
34-
35-
#### directory
31+
#### directory (_**required**_)
3632

3733
Alias(es): d
3834

3935
Type: `string`
4036

41-
A directory where the lib is placed.
37+
A directory where the project is placed.
4238

4339
#### e2eTestRunner
4440

@@ -56,17 +52,17 @@ Default: `eslint`
5652

5753
Type: `string`
5854

59-
Possible values: `eslint`
55+
Possible values: `eslint`, `none`
6056

6157
The tool to use for running lint checks.
6258

63-
#### projectNameAndRootFormat
59+
#### name
6460

65-
Type: `string`
61+
Alias(es): n
6662

67-
Possible values: `as-provided`, `derived`
63+
Type: `string`
6864

69-
Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).
65+
A name of the project.
7066

7167
#### rootProject (**hidden**)
7268

@@ -132,10 +128,14 @@ nx g library ... --dry-run
132128

133129
### Options
134130

135-
#### name (_**required**_)
131+
#### directory (_**required**_)
132+
133+
Alias(es): d
136134

137135
Type: `string`
138136

137+
A directory where the project is placed.
138+
139139
#### buildable
140140

141141
Default: `false`
@@ -144,14 +144,6 @@ Type: `boolean`
144144

145145
Generate a buildable library.
146146

147-
#### directory
148-
149-
Alias(es): d
150-
151-
Type: `string`
152-
153-
A directory where the lib is placed.
154-
155147
#### e2eTestRunner
156148

157149
Default: `cypress`
@@ -174,10 +166,18 @@ Default: `eslint`
174166

175167
Type: `string`
176168

177-
Possible values: `eslint`
169+
Possible values: `eslint`, `none`
178170

179171
The tool to use for running lint checks.
180172

173+
#### name
174+
175+
Alias(es): n
176+
177+
Type: `string`
178+
179+
A name of the project.
180+
181181
#### publishable
182182

183183
Type: `boolean`

docs/docs/stencil/generators.md

+24-16
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,13 @@ nx g application ... --dry-run
2828

2929
### Options
3030

31-
#### name (_**required**_)
32-
33-
Type: `string`
34-
35-
#### directory
31+
#### directory (_**required**_)
3632

3733
Alias(es): d
3834

3935
Type: `string`
4036

41-
A directory where the project is placed
37+
A directory where the project is placed.
4238

4339
#### e2eTestRunner
4440

@@ -60,6 +56,14 @@ Possible values: `eslint`, `none`
6056

6157
The tool to use for running lint checks.
6258

59+
#### name
60+
61+
Alias(es): n
62+
63+
Type: `string`
64+
65+
A name of the project.
66+
6367
#### skipFormat
6468

6569
Default: `false`
@@ -126,10 +130,14 @@ nx g library ... --dry-run
126130

127131
### Options
128132

129-
#### name (_**required**_)
133+
#### directory (_**required**_)
134+
135+
Alias(es): d
130136

131137
Type: `string`
132138

139+
A directory where the project is placed.
140+
133141
#### buildable
134142

135143
Default: `false`
@@ -144,14 +152,6 @@ Type: `boolean`
144152

145153
Generate a default component.
146154

147-
#### directory
148-
149-
Alias(es): d
150-
151-
Type: `string`
152-
153-
A directory where the project is placed
154-
155155
#### e2eTestRunner
156156

157157
Default: `puppeteer`
@@ -178,6 +178,14 @@ Possible values: `eslint`, `none`
178178

179179
The tool to use for running lint checks.
180180

181+
#### name
182+
183+
Alias(es): n
184+
185+
Type: `string`
186+
187+
A name of the project.
188+
181189
#### publishable
182190

183191
Type: `boolean`
@@ -268,7 +276,7 @@ Alias(es): d
268276

269277
Type: `string`
270278

271-
A directory where the project is placed
279+
A directory where the project is placed.
272280

273281
#### skipFormat
274282

0 commit comments

Comments
 (0)