From eab2f53e47509cf7f793a47d71f4bcb3d97ae530 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Fri, 3 Jan 2025 08:11:33 -0700 Subject: [PATCH] docs: mention --graph on graphs page (#9661) ### Description In https://github.com/vercel/turborepo/issues/8806, it was mentioned that we should mention `--graph` on the page where we talk about graphs - so let's do that! --- docs/repo-docs/core-concepts/package-and-task-graph.mdx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/repo-docs/core-concepts/package-and-task-graph.mdx b/docs/repo-docs/core-concepts/package-and-task-graph.mdx index d6dec7208ca2f..4b8bdc989867a 100644 --- a/docs/repo-docs/core-concepts/package-and-task-graph.mdx +++ b/docs/repo-docs/core-concepts/package-and-task-graph.mdx @@ -4,6 +4,7 @@ description: Turborepo builds a Task Graph based on your configuration and repos --- import { File, Folder, Files } from '#/components/files'; +import { Callout } from '#/components/callout'; ## Package Graph @@ -14,8 +15,12 @@ This sets the groundwork for the Task Graph, where you'll define how **tasks** r ## Task Graph In `turbo.json`, you express how tasks relate to each other. You can think of these relationships as -dependencies between tasks, but we have a more formal name for them: the Task -Graph. +dependencies between tasks, but we have a more formal name for them: the Task Graph. + + + You can generate a visualization of the task graph for your tasks using [the + `--graph` flag](/repo/docs/reference/run#--graph-file-type). + Turborepo uses a data structure called a [directed acyclic graph (DAG)](https://en.wikipedia.org/wiki/Directed_acyclic_graph) to understand your repository and its tasks. A graph is made up of "nodes" and