VisCommandsvis run

vis run

Run a target across workspace projects with caching and dependency ordering

vis run

Run a target (e.g., build, test, lint) across workspace projects. Tasks are executed in dependency order with caching.

Usage

vis run <target> [options]

Examples

vis run build
vis run test --projects=@my/app,@my/lib
vis run build --parallel=5
vis run build --no-cache
vis run lint --dry-run
vis run build --summarize

Options

OptionAliasDefaultDescription
--projects-pallComma-separated list of projects to run
--parallel3Maximum number of parallel tasks
--cachetrueEnable caching (--no-cache to disable)
--cache-dirCustom cache directory
--dry-runfalseShow what would run without executing
--summarizefalseGenerate a JSON run summary

How It Works

  1. Discovery — Reads workspace configuration to find all projects
  2. Graph — Builds a dependency graph from each project's package.json
  3. Filter — Selects projects matching --projects (or all)
  4. Order — Sorts tasks topologically so dependencies run first
  5. Cache — Checks cache for each task; skips if inputs haven't changed
  6. Execute — Runs tasks in parallel up to --parallel limit
  7. Store — Caches results for subsequent runs

Configuration

Set target defaults in vis.json:

{
    "targetDefaults": {
        "build": {
            "dependsOn": ["^build"],
            "outputs": ["{projectRoot}/dist/**"],
            "cache": true
        },
        "test": {
            "dependsOn": ["build"],
            "cache": true
        }
    }
}
Support

Contribute to our work and keep us going

Community is the heart of open source. The success of our packages wouldn't be possible without the incredible contributions of users, testers, and developers who collaborate with us every day.Want to get involved? Here are some tips on how you can make a meaningful impact on our open source projects.

Ready to help us out?

Be sure to check out the package's contribution guidelines first. They'll walk you through the process on how to properly submit an issue or pull request to our repositories.

Submit a pull request

Found something to improve? Fork the repo, make your changes, and open a PR. We review every contribution and provide feedback to help you get merged.

Good first issues

Simple issues suited for people new to open source development, and often a good place to start working on a package.
View good first issues