Skip to content

Commit

Permalink
docs(core): add example run-many commands filtering on specific tags (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LayZeeDK committed Jun 6, 2023
1 parent 3997d3f commit f1db759
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/generated/cli/run-many.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ Test all projects with tags starting with `api-`. Note: your shell may require y
nx run-many -t test --projects=tag:api-*
```

Test all projects with a `type:ui` tag:

```shell
nx run-many -t test --projects=tag:type:ui
```

Test all projects with a `type:feature` or `type:ui` tag:

```shell
nx run-many -t test --projects=tag:type:feature,tag:type:ui
```

Run lint, test, and build targets for all projects. Requires Nx v15.4+:

```shell
Expand Down
12 changes: 12 additions & 0 deletions docs/generated/packages/nx/documents/run-many.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ Test all projects with tags starting with `api-`. Note: your shell may require y
nx run-many -t test --projects=tag:api-*
```

Test all projects with a `type:ui` tag:

```shell
nx run-many -t test --projects=tag:type:ui
```

Test all projects with a `type:feature` or `type:ui` tag:

```shell
nx run-many -t test --projects=tag:type:feature,tag:type:ui
```

Run lint, test, and build targets for all projects. Requires Nx v15.4+:

```shell
Expand Down
8 changes: 8 additions & 0 deletions packages/nx/src/command-line/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,14 @@ export const examples: Record<string, Example[]> = {
description:
'Test all projects with tags starting with `api-`. Note: your shell may require you to escape the `*` like this: `\\*`',
},
{
command: 'run-many -t test --projects=tag:type:ui',
description: 'Test all projects with a `type:ui` tag',
},
{
command: 'run-many -t test --projects=tag:type:feature,tag:type:ui',
description: 'Test all projects with a `type:feature` or `type:ui` tag',
},
{
command: 'run-many --targets=lint,test,build --all',
description:
Expand Down

1 comment on commit f1db759

@vercel
Copy link

@vercel vercel bot commented on f1db759 Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.