nx-run-tasks

Execute build, test, and lint tasks within an Nx monorepo.

1|Updated Jun 12, 2024
One-click install
npx skills add https://github.com/cskiwi/badman-m3 --skill nx-run-tasks-cskiwi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/cskiwi/badman-m3/tree/main/.claude/skills/nx-run-tasks
Command: npx skills add https://github.com/cskiwi/badman-m3 --skill nx-run-tasks-cskiwi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the execution of development and build tasks within an Nx monorepo, ensuring consistency and leveraging Nx's caching and affected project capabilities.

Core Features & Use Cases

  • Task Execution: Run single or multiple tasks across projects (e.g., build, test, lint).
  • Affected Commands: Optimize CI/CD by running tasks only on changed projects and their dependents.
  • Configuration & Flags: Utilize flags for caching control, verbosity, and specific configurations.
  • Use Case: When a developer needs to build all applications in the monorepo after making changes to a shared library, this Skill can efficiently run the build task only for affected projects.

Quick Start

Use the nx-run-tasks skill to run the test task for all projects in the workspace.

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?

To run build and test tasks for affected projects in an Nx monorepo, use the affected commands feature. This targets only changed projects and their dependents, optimizing CI/CD pipelines by skipping unaffected workspace tasks.

Can I execute multiple workspace tasks in parallel across different Nx projects?

Yes, you can execute multiple workspace tasks across different Nx projects in parallel. The skill supports running single or multiple tasks like lint and build with parallel execution options and project filtering.

What is the best way to target specific projects while excluding others during monorepo task execution?

The best way to target specific projects while excluding others during monorepo task execution is utilizing project filtering and exclusion flags. This allows precise control over which workspace tasks run during your build process.

How do I control caching and verbosity when running Nx tasks?

You can control caching and verbosity when running Nx tasks by utilizing specific configuration flags. These flags allow you to bypass cache or increase output detail for your monorepo build, test, and lint commands.

Why should I use affected project commands instead of running all tasks in my Nx workspace?

You should use affected project commands instead of running all tasks to optimize CI/CD pipelines. By targeting only changed projects and their dependents, it leverages Nx caching to significantly reduce build and test execution time.