{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "NxPluginGenerator",
  "title": "Create a Generator for an Nx Plugin",
  "description": "Create a Generator for an Nx Plugin.",
  "type": "object",
  "examples": [
    {
      "command": "nx g generator my-generator --project=my-plugin",
      "description": "Generate `libs/my-plugin/src/generators/my-generator`"
    }
  ],
  "properties": {
    "project": {
      "type": "string",
      "description": "The name of the project.",
      "alias": "p",
      "$default": {
        "$source": "projectName"
      },
      "x-prompt": "What is the name of the project for the generator?",
      "x-priority": "important"
    },
    "name": {
      "type": "string",
      "description": "Generator name.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the generator?",
      "x-priority": "important"
    },
    "description": {
      "type": "string",
      "description": "Generator description.",
      "alias": "d"
    },
    "unitTestRunner": {
      "type": "string",
      "enum": ["jest", "none"],
      "description": "Test runner to use for unit tests.",
      "default": "jest"
    },
    "skipLintChecks": {
      "type": "boolean",
      "default": false,
      "description": "Do not add an eslint configuration for plugin json files."
    },
    "skipFormat": {
      "type": "boolean",
      "default": false,
      "description": "Do not format files with prettier.",
      "x-priority": "internal"
    }
  },
  "required": ["project", "name"],
  "additionalProperties": false
}
