nx-run-tasks

Execute single or multiple tasks within an Nx workspace.

Updated Oct 21, 2023
One-click install
npx skills add https://github.com/andre-goldmann/jdg.digital --skill nx-run-tasks-andre-goldmann
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/andre-goldmann/jdg.digital/tree/main/apps/.opencode/skills/nx-run-tasks
Command: npx skills add https://github.com/andre-goldmann/jdg.digital --skill nx-run-tasks-andre-goldmann

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the execution of build, test, lint, serve, and other tasks within an Nx monorepo, optimizing developer workflows and CI processes.

Core Features & Use Cases

  • Task Execution: Run single or multiple Nx tasks across projects.
  • Affected Commands: Execute tasks only on projects impacted by recent code changes.
  • Use Case: When you need to build all applications in your Nx workspace that have been modified since the last commit to the main branch.

Quick Start

Use the nx-run-tasks skill to run the build and test tasks for all affected projects.

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 build and test tasks only for affected projects in an Nx monorepo?

You can run build and test tasks for affected projects in an Nx monorepo by executing targeted affected commands. This runs tasks only on projects impacted by recent code changes, optimizing CI pipelines.

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

The best way to execute multiple Nx workspace tasks is using a task runner that supports single and multiple task executions. This facilitates efficient development by managing build, test, lint, and serve commands across projects.

Do I need to understand Nx project configurations to run workspace tasks efficiently?

Yes, understanding Nx project configurations and task definitions is required. Optimal usage of Nx workspace task execution depends on knowing how projects and tasks are structured within the monorepo.

Can I automate lint and serve commands for my CI pipelines using Nx?

Yes, you can automate lint and serve commands for CI pipelines using Nx. The task execution mechanism manages these commands alongside build and test runs to streamline development workflows.

How do I execute tasks on projects impacted by changes since the last commit to the main branch?

To execute tasks on projects impacted by changes since the last commit to the main branch, use Nx affected commands. This targets only modified projects, ensuring efficient task execution.

When should I use affected task runs instead of running all tasks in an Nx workspace?

You should use affected task runs instead of running all tasks when you need to optimize developer workflows and CI processes. This approach avoids unnecessary execution by targeting only impacted projects.