nx-run-tasks

Automate Nx CLI commands for single, bulk, and affected project tasks.

9|2|Updated Apr 13, 2024
One-click install
npx skills add https://github.com/JacobLey/leyman --skill nx-run-tasks-jacobley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/JacobLey/leyman/tree/main/.claude/skills/nx-run-tasks
Command: npx skills add https://github.com/JacobLey/leyman --skill nx-run-tasks-jacobley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams streamline running Nx tasks (build, test, check, and more) across a workspace, reducing manual toggles and wait times.

Core Features & Use Cases

  • Run a single project: nx run <project>:<target>
  • Run all projects: nx run-many -t <target>
  • Run specific projects: nx run-many -t <target> -p <project1> <project2>
  • Run only affected projects: nx affected -t <target>

Quick Start

Run a target for a single project by executing nx run <project>:<target> in your terminal.

Frequently Asked Questions about nx-run-tasks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Nx tasks across multiple projects in a monorepo?

You can run Nx tasks across multiple monorepo projects by executing the nx run-many command with the -t flag for your target and the -p flag to specify project names, enabling bulk project executions.

What is the best way to run only affected Nx tasks in a workspace?

The best way to run only affected Nx tasks is using the nx affected -t <target> command, which leverages task orchestration and caching to execute only projects impacted by your changes for faster feedback.

Do I need the Nx CLI installed to orchestrate monorepo build targets?

Yes, you need the Nx CLI installed to orchestrate monorepo build targets, as this automation invokes Nx CLI commands to orchestrate project targets across your workspace for builds, tests, and checks.

How does Nx task orchestration speed up monorepo testing?

Nx task orchestration speeds up monorepo testing by leveraging built-in caching and affected-based project selection, ensuring only impacted projects are re-evaluated, which reduces manual toggles and wait times.

Can I execute a single project target using Nx without running the entire workspace?

Yes, you can execute a single project target by running the nx run <project>:<target> command in your terminal, which isolates the task execution to just that specific project within the Nx workspace.