nx-run-tasks

Orchestrate Nx workspace tasks across multiple monorepo projects.

1|Updated Jul 15, 2024
One-click install
npx skills add https://github.com/EelcoLos/nx-tinkering --skill nx-run-tasks-eelcolos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/EelcoLos/nx-tinkering/tree/main/.gemini/skills/nx-run-tasks
Command: npx skills add https://github.com/EelcoLos/nx-tinkering --skill nx-run-tasks-eelcolos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers manage and execute tasks in an Nx monorepo, simplifying orchestration of builds, tests, linting, and serves across projects.

Core Features & Use Cases

  • Run a single task: nx run <project>:<task> to execute a specific target.
  • Run multiple tasks: nx run-many -t <targets> to coordinate across projects in the workspace.
  • Explore available tasks: nx show project <name> --json to discover targets and scripts within a project.
  • Quick-start workflow: Use this skill to trigger builds in a large monorepo, ensuring consistency across apps and libraries.

Quick Start

Tell me to run a task, for example, nx run myapp:build.

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 tasks across multiple projects in an Nx monorepo?

Run tasks across multiple projects using the `nx run-many -t <targets>` command to coordinate builds, tests, and linting. This approach ensures consistency across apps and libraries in the workspace.

How do I discover available targets for a specific project in Nx?

Discover available targets by running `nx show project <name> --json` to inspect the project. This reveals executable commands defined in the project's project.json and package.json scripts.

Can I execute a single build or test target for one project in Nx?

Yes, execute a single target using `nx run <project>:<task>`. This triggers the specific build, test, lint, or serve target defined in your project configuration.

Do I need Nx globally installed to run workspace tasks?

No, Nx does not need to be globally installed. The skill provides guidance for environments without a global installation, allowing you to execute workspace tasks locally.

What configuration files are required to execute Nx tasks?

Executing Nx tasks requires understanding of `project.json` and `package.json` scripts to determine executable commands. These files define the available targets and scripts for your projects.