CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/nx-plugin-toolkit

Complete Nx plugin development toolkit: create custom generators, executors, and extend Nx workspaces with reusable automation

93

1.00x
Quality

94%

Does it follow best practices?

Impact

92%

1.00x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

executor-schema-design.mdnx-plugin-authoring/references/

Executor Schema Design

Use this reference when designing schema.json for custom Nx executors.

Baseline Schema Example

{
  "$schema": "http://json-schema.org/schema",
  "type": "object",
  "properties": {
    "outputPath": {
      "type": "string",
      "description": "Where generated artifacts are written"
    },
    "watch": {
      "type": "boolean",
      "default": false,
      "description": "Enable incremental watch mode"
    }
  },
  "required": ["outputPath"]
}

Validation Patterns

  • Use required for mandatory operational parameters.
  • Add defaults for safe optional flags.
  • Prefer descriptive option text; it becomes CLI help content.

Conditional/Dependent Example

{
  "type": "object",
  "properties": {
    "mode": { "enum": ["dev", "prod"] },
    "minify": { "type": "boolean" }
  },
  "allOf": [
    {
      "if": { "properties": { "mode": { "const": "prod" } } },
      "then": { "required": ["minify"] }
    }
  ]
}

tile.json