Skip to content

Commit

Permalink
feat(core): show task graph of commands (#15440)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Fulcher <philip@nrwl.io>
  • Loading branch information
FrozenPandaz and philipjfulcher committed Mar 21, 2023
1 parent 1e48f6a commit 2cc949e
Show file tree
Hide file tree
Showing 23 changed files with 392 additions and 134 deletions.
16 changes: 16 additions & 0 deletions docs/generated/cli/affected-graph.md
Expand Up @@ -129,6 +129,12 @@ Type: `number`

Bind the project graph server to a specific port.

### targets

Type: `string`

The target to show tasks for in the task graph

### uncommitted

Type: `boolean`
Expand All @@ -147,6 +153,16 @@ Type: `boolean`

Show version number

### view

Type: `string`

Choices: [projects, tasks]

Default: `projects`

Choose whether to view the projects or task graph

### watch

Type: `boolean`
Expand Down
8 changes: 8 additions & 0 deletions docs/generated/cli/affected.md
Expand Up @@ -97,6 +97,14 @@ Type: `string`

Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces

### graph

Type: `boolean`

Default: `false`

Show the task graph of the command

### head

Type: `string`
Expand Down
8 changes: 8 additions & 0 deletions docs/generated/cli/exec.md
Expand Up @@ -29,6 +29,14 @@ Type: `string`

Exclude certain projects from being processed

### graph

Type: `boolean`

Default: `false`

Show the task graph of the command

### nx-bail

Type: `boolean`
Expand Down
16 changes: 16 additions & 0 deletions docs/generated/cli/graph.md
Expand Up @@ -117,12 +117,28 @@ Type: `number`

Bind the project graph server to a specific port.

### targets

Type: `string`

The target to show tasks for in the task graph

### version

Type: `boolean`

Show version number

### view

Type: `string`

Choices: [projects, tasks]

Default: `projects`

Choose whether to view the projects or task graph

### watch

Type: `boolean`
Expand Down
8 changes: 8 additions & 0 deletions docs/generated/cli/run-many.md
Expand Up @@ -75,6 +75,14 @@ Type: `string`

Exclude certain projects from being processed

### graph

Type: `boolean`

Default: `false`

Show the task graph of the command

### help

Type: `boolean`
Expand Down
16 changes: 16 additions & 0 deletions docs/generated/packages/nx/documents/affected-dep-graph.md
Expand Up @@ -129,6 +129,12 @@ Type: `number`

Bind the project graph server to a specific port.

### targets

Type: `string`

The target to show tasks for in the task graph

### uncommitted

Type: `boolean`
Expand All @@ -147,6 +153,16 @@ Type: `boolean`

Show version number

### view

Type: `string`

Choices: [projects, tasks]

Default: `projects`

Choose whether to view the projects or task graph

### watch

Type: `boolean`
Expand Down
8 changes: 8 additions & 0 deletions docs/generated/packages/nx/documents/affected.md
Expand Up @@ -97,6 +97,14 @@ Type: `string`

Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces

### graph

Type: `boolean`

Default: `false`

Show the task graph of the command

### head

Type: `string`
Expand Down
16 changes: 16 additions & 0 deletions docs/generated/packages/nx/documents/dep-graph.md
Expand Up @@ -117,12 +117,28 @@ Type: `number`

Bind the project graph server to a specific port.

### targets

Type: `string`

The target to show tasks for in the task graph

### version

Type: `boolean`

Show version number

### view

Type: `string`

Choices: [projects, tasks]

Default: `projects`

Choose whether to view the projects or task graph

### watch

Type: `boolean`
Expand Down
8 changes: 8 additions & 0 deletions docs/generated/packages/nx/documents/exec.md
Expand Up @@ -29,6 +29,14 @@ Type: `string`

Exclude certain projects from being processed

### graph

Type: `boolean`

Default: `false`

Show the task graph of the command

### nx-bail

Type: `boolean`
Expand Down
8 changes: 8 additions & 0 deletions docs/generated/packages/nx/documents/run-many.md
Expand Up @@ -75,6 +75,14 @@ Type: `string`

Exclude certain projects from being processed

### graph

Type: `boolean`

Default: `false`

Show the task graph of the command

### help

Type: `boolean`
Expand Down
2 changes: 1 addition & 1 deletion graph/client/src/app/feature-tasks/task-list.tsx
Expand Up @@ -141,7 +141,7 @@ export function TaskList({
}: TaskListProps) {
const filteredProjects = projects
.filter((project) =>
(project.data as any).targets.hasOwnProperty(selectedTarget)
(project.data as any).targets?.hasOwnProperty(selectedTarget)
)
.sort((a, b) => a.name.localeCompare(b.name));
const appProjects = getProjectsByType('app', filteredProjects);
Expand Down

1 comment on commit 2cc949e

@vercel
Copy link

@vercel vercel bot commented on 2cc949e Mar 21, 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.dev
nx-five.vercel.app

Please sign in to comment.