Skip to content
vxvx
GitHubBlueskydev.toRSS

Group tasks

Name a set of tasks once and run them with one word.

A check task that runs lint and test.

A check that means lint, typecheck and test is a task with dependsOn and no command. Running it runs its members, in parallel where the graph allows.

Groups compose like any task: depend on one, filter it, run it with --all. An empty dependsOn: [] is a named no-op, handy as a placeholder a project can fill in later.

// config

// packages/web/vx.config.ts
import { defineProject } from '@vzn/vx/config'

export default defineProject({
  tasks: {
    lint: { exec: { command: 'oxlint' } },
    test: { exec: { command: 'vitest run' } },
    check: { dependsOn: ['lint', 'test'] },
  },
})
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.