lifecycle

Generate dependsOn relationships for Install, Check, Build, and Test stages in Nx monorepos.

9|2|Updated Apr 13, 2024
One-click install
npx skills add https://github.com/JacobLey/leyman --skill lifecycle-jacobley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lifecycle
Source: https://github.com/JacobLey/leyman/tree/main/leyman/main/.claude/lifecycle
Command: npx skills add https://github.com/JacobLey/leyman --skill lifecycle-jacobley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

NX monorepo lifecycles can be complex to coordinate across many projects. This skill clarifies how nx-lifecycle and targets are wired, enabling predictable task ordering and dependency generation.

Core Features & Use Cases

  • Centralized lifecycle configuration in lifecycle.json
  • Automatic generation of dependsOn chains for Install, Check, Build, and Test
  • Clear guidance for modifying and extending lifecycles across projects

Quick Start

Understand and align the lifecycle orchestration in your Nx monorepo.

Frequently Asked Questions about lifecycle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate task ordering across an Nx monorepo?

To coordinate task ordering across an Nx monorepo, define centralized lifecycle configurations in a lifecycle.json file. This generates consistent dependsOn chains for predictable task execution across all managed projects.

What is the best way to generate dependsOn relationships for Nx build pipelines?

Generating dependsOn relationships for Nx build pipelines is handled by defining task stages in lifecycle.json. This automatically wires dependency chains for Install, Check, Build, and Test stages across the monorepo.

How do I configure Nx lifecycles for Install, Check, Build, and Test stages?

Configuring Nx lifecycles for Install, Check, Build, and Test stages involves defining workflows in lifecycle.json. This ensures proper wiring and consistent task ordering across project.json and nx.json configuration files.

Can I use lifecycle.json to manage task dependencies for all projects in an Nx monorepo?

Yes, lifecycle.json can manage task dependencies for all projects in an Nx monorepo. It applies centralized lifecycle definitions across the workspace, enforcing consistent task ordering and dependency generation.

How do you modify the lifecycle workflow in an Nx monorepo?

To modify the lifecycle workflow in an Nx monorepo, update definitions in lifecycle.json. This provides guidance for extending lifecycles and automatically applies the updated task ordering across all projects.