docs(core): update examples (#14335)

This commit is contained in:
Janek Lasocki-Biczysko 2023-01-25 17:45:42 +00:00 committed by GitHub
parent a7485d3ecd
commit bf0aaeb213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 9 deletions

View File

@ -23,16 +23,22 @@ Test all projects:
nx run-many --target=test
```
Test proj1 and proj2:
Test proj1 and proj2 in parallel:
```shell
nx run-many --target=test --projects=proj1,proj2
```
Test proj1 and proj2 in parallel:
Test proj1 and proj2 in parallel using 5 workers:
```shell
nx run-many --target=test --projects=proj1,proj2 --parallel=2
nx run-many --target=test --projects=proj1,proj2 --parallel=5
```
Test proj1 and proj2 in sequence:
```shell
nx run-many --target=test --projects=proj1,proj2 --parallel=false
```
Test all projects ending with `*-app` except `excluded-app`:

View File

@ -23,16 +23,22 @@ Test all projects:
nx run-many --target=test
```
Test proj1 and proj2:
Test proj1 and proj2 in parallel:
```shell
nx run-many --target=test --projects=proj1,proj2
```
Test proj1 and proj2 in parallel:
Test proj1 and proj2 in parallel using 5 workers:
```shell
nx run-many --target=test --projects=proj1,proj2 --parallel=2
nx run-many --target=test --projects=proj1,proj2 --parallel=5
```
Test proj1 and proj2 in sequence:
```shell
nx run-many --target=test --projects=proj1,proj2 --parallel=false
```
Test all projects ending with `*-app` except `excluded-app`:

View File

@ -294,11 +294,15 @@ export const examples: Record<string, Example[]> = {
},
{
command: 'run-many --target=test --projects=proj1,proj2',
description: 'Test proj1 and proj2',
description: 'Test proj1 and proj2 in parallel',
},
{
command: 'run-many --target=test --projects=proj1,proj2 --parallel=2',
description: 'Test proj1 and proj2 in parallel',
command: 'run-many --target=test --projects=proj1,proj2 --parallel=5',
description: 'Test proj1 and proj2 in parallel using 5 workers',
},
{
command: 'run-many --target=test --projects=proj1,proj2 --parallel=false',
description: 'Test proj1 and proj2 in sequence',
},
{
command: 'run-many --target=test --projects=*-app --exclude excluded-app',