这是indexloc提供的服务,不要输入任何密码
Skip to content

Start docs for --dry #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/pages/docs/reference/command-line-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,23 @@ turbo run build --no-deps

Let's say you have packages A, B, C, and D where A depends on B and C depends on D. You run `turbo run build` for the first time and everything is built and cached. Then, you change a line of code in B. With the `--deps` flag on, running `turbo run build` will execute `build` in B and then A, but not in C and D because they are not impacted by the change. If you were to run `turbo run build --no-deps` instead, turbo will only run `build` in B.

#### --dry / --dry-run

Instead of executing tasks, display details about the affected packages and tasks that would be run.
Specify `--dry=json` to get the output in JSON format.

Task details include:

- `task`: The name of the task to be executed
- `package`: The package in which to run the task
- `hash`: The hash of the task, used for caching
- `directory`: The directory where the task will be run
- `command`: The actual command used to run the task
- `outputs`: Location of outputs from the task that will cached
- `logFile`: Location of the log file for the task run
- `dependencies`: Tasks that must run before this task
- `dependents`: Tasks that must be run after this task

#### `--graph`

`type: string`
Expand Down