nx-run-tasks

Execute build, test, lint, and type-checking tasks in Nx workspaces.

9|Updated Dec 12, 2023
One-click install
npx skills add https://github.com/Digital-Defiance/BrightChain --skill nx-run-tasks-digital-defiance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/Digital-Defiance/BrightChain/tree/main/.gemini/skills/nx-run-tasks
Command: npx skills add https://github.com/Digital-Defiance/BrightChain --skill nx-run-tasks-digital-defiance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the execution of development and build tasks within an Nx workspace, ensuring consistency and leveraging Nx's advanced features for optimized workflows.

Core Features & Use Cases

  • Task Execution: Run single or multiple tasks across projects (build, test, lint, etc.).
  • Affected Commands: Efficiently run tasks only on projects impacted by recent changes, ideal for CI/CD pipelines.
  • Configuration: Supports various flags for caching, parallelization, and error handling.
  • Use Case: After updating a shared library, use this Skill to run tests only on projects that depend on that library, significantly reducing build times.

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 tasks only on affected projects in an Nx monorepo?

Nx workspace task execution supports affected commands to run builds and tests only on projects impacted by recent changes, optimizing CI pipeline efficiency and reducing redundant processing.

Can I execute build and test tasks across multiple projects in an Nx workspace?

Yes, Nx workspace task execution supports single-project, multi-project, and affected-project runs, allowing you to execute build, test, lint, and type-checking operations across multiple monorepo projects simultaneously.

What is the best way to optimize CI pipelines for an Nx monorepo?

The best way to optimize CI pipelines in an Nx monorepo is using affected commands with caching and parallelization flags, running tasks only on projects impacted by recent changes to minimize execution time.

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

Yes, understanding Nx project configurations and task definitions is required to manage dependencies and execution flow properly when running build, test, lint, and type-checking operations.

Does Nx task execution support caching and parallelization flags?

Yes, Nx task execution supports various configuration flags for caching, parallelization, and error handling to optimize build, test, lint, and type-checking workflows within the workspace.