Skip to content

Commit

Permalink
fix(core): add js docs to graph json
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Aug 23, 2024
1 parent a4f48e2 commit aee664f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/generated/devkit/GraphJson.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Interface: GraphJson

The data type that `nx graph --file graph.json` or `nx build --graph graph.json` contains

## Table of contents

### Properties
Expand All @@ -14,14 +16,20 @@

**graph**: [`ProjectGraph`](../../devkit/documents/ProjectGraph)

The project graph

---

### taskPlans

`Optional` **taskPlans**: `Record`\<`string`, `string`[]\>

The plans for hashing a task in the task graph

---

### tasks

`Optional` **tasks**: [`TaskGraph`](../../devkit/documents/TaskGraph)

A graph of tasks populated with `nx build --graph`
12 changes: 12 additions & 0 deletions packages/nx/src/command-line/graph/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,9 +1155,21 @@ function expandInputs(
};
}

/**
* The data type that `nx graph --file graph.json` or `nx build --graph graph.json` contains
*/
export interface GraphJson {
/**
* A graph of tasks populated with `nx build --graph`
*/
tasks?: TaskGraph;
/**
* The plans for hashing a task in the task graph
*/
taskPlans?: Record<string, string[]>;
/**
* The project graph
*/
graph: ProjectGraph;
}

Expand Down

0 comments on commit aee664f

Please sign in to comment.