Quick Start
Get up and running with vis in your monorepo
Quick Start
This guide walks you through the most common vis workflows.
Running Tasks
Run a target across all workspace projects in dependency order:
vis run buildRun with increased parallelism:
vis run build --parallel=5Run only specific projects:
vis run test --projects=@my/app,@my/libPreview what would run without executing:
vis run build --dry-runAffected Detection
Only run tasks for projects changed since a git ref:
vis affected test --base=mainCompare specific git refs:
vis affected lint --base=HEAD~5 --head=HEADChecking for Outdated Dependencies
For pnpm or bun workspaces with catalogs, check which dependencies are outdated:
vis checkCheck only specific packages:
vis check react typescriptOnly show minor and patch updates:
vis check --target minorUpdating Dependencies
Update catalog dependencies interactively:
vis update --interactiveUpdate only patch versions (safe for production):
vis update --target patchPreview changes without applying:
vis update --dry-runRollback if something goes wrong:
vis update --rollbackVisualizing the Dependency Graph
View your project dependency graph:
vis graphExport as DOT format for Graphviz:
vis graph --format=dot --output=graph.dotManaging Git Hooks
Install git hooks:
vis hook installMigrate from husky:
vis hook migrateConfiguration
Create a vis.json in your workspace root for persistent configuration:
{
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/dist/**"],
"cache": true
}
},
"update": {
"target": "minor",
"exclude": ["legacy-*"]
}
}See the Configuration page for all available options.