nx-run-tasks

Execute Nx tasks across projects in a workspace.

2|Updated Sep 2, 2024
One-click install
npx skills add https://github.com/e-burgos/tucu-ui --skill nx-run-tasks-e-burgos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/e-burgos/tucu-ui/tree/main/.cursor/skills/nx-run-tasks
Command: npx skills add https://github.com/e-burgos/tucu-ui --skill nx-run-tasks-e-burgos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinates and simplifies running Nx targets across a multi-project workspace, eliminating manual, scattered commands and inconsistent results.

This skill guides users to discover, select, and execute builds, tests, linting, serving, and other defined targets across projects with clear, actionable instructions.

Core Features & Use Cases

  • Run a single task: nx run <project>:<task> to execute a target on a specific project.
  • Run multiple tasks: nx run-many -t <task1> <task2> ... to orchestrate several targets across projects efficiently.
  • Run tasks for affected projects: nx affected -t <targets> to focus work on projects changed by development activity.

Quick Start

Run nx run myapp:build to build the myapp project.

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 a specific build or test target on an Nx project?

Run the `nx run <project>:<target>` command to execute a specific build, test, or lint target on a single project within your Nx workspace.

What is the best way to execute multiple Nx targets across different projects?

To execute multiple targets across projects, use the `nx run-many -t <task1> <task2>` command to efficiently orchestrate builds, tests, and linting across your workspace.

How do I run Nx tasks only for projects affected by recent changes?

Use the `nx affected -t <targets>` command to focus execution exclusively on build, test, and lint targets for projects affected by recent development activity.

Can I use this to run Nx targets if nx is not installed locally?

Yes, you can execute Nx targets by invoking nx via npx, pnpx, or yarn if it is not installed locally in your workspace environment.

Where does this discover Nx targets and tasks for my workspace projects?

It discovers available build, test, and lint targets by reading the `package.json` or `project.json` configuration files located across the projects in your workspace.