Nx

Nx workspace configuration, generators, and affected commands.

a5c-ai Updated 1.7k repo stars

File contents

Nx Skill

Expert assistance for Nx monorepo management.

Capabilities

  • Configure Nx workspaces
  • Create custom generators
  • Use affected commands
  • Set up caching
  • Define project boundaries

Configuration

// nx.json
{
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "cache": true
    },
    "test": {
      "cache": true
    }
  },
  "affected": {
    "defaultBase": "main"
  }
}

Commands

# Run affected
nx affected:build
nx affected:test

# Graph
nx graph

# Generate
nx generate @nx/react:component Button

Target Processes

  • monorepo-management
  • enterprise-architecture
  • code-generation

a5c-ai/babysitter/tree/main/library/specializations/web-development/skills/nx commit 52cf9c4ef8

Frequently asked questions

npx skillmds@latest add a5c-ai/nx