{
  "$schema": "http://json-schema.org/schema",
  "$id": "ReactLibrary",
  "title": "React Library",
  "description": "Add qwikified React components as a separate library",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Library name.",
      "x-priority": "important"
    },
    "directory": {
      "type": "string",
      "description": "A directory where the lib is placed.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "Which directory do you want to create the library in?"
    },
    "projectNameAndRootFormat": {
      "description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
      "type": "string",
      "enum": ["as-provided", "derived"]
    },
    "installMUIExample": {
      "type": "boolean",
      "description": "Add dependencies for Material UI and qwikified example component, that uses it",
      "x-priority": "important",
      "default": true
    },
    "targetApps": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "uniqueItems": true
          }
        }
      ],
      "description": "The names of the applications that should be configured to work with react components.",
      "x-prompt": "What apps are you going to use this integration with? (Comma delimited, leave empty for none)",
      "x-priority": "important"
    },
    "buildable": {
      "type": "boolean",
      "default": false,
      "description": "Generate a buildable library.",
      "x-priority": "important"
    },
    "linter": {
      "description": "The tool to use for running lint checks.",
      "type": "string",
      "enum": ["eslint", "none"],
      "default": "eslint"
    },
    "unitTestRunner": {
      "type": "string",
      "enum": ["vitest", "none"],
      "description": "Test runner to use for unit tests.",
      "default": "vitest"
    },
    "tags": {
      "type": "string",
      "description": "Add tags to the library (used for linting)."
    },
    "skipFormat": {
      "description": "Skip formatting files.",
      "type": "boolean",
      "x-priority": "internal",
      "default": false
    },
    "importPath": {
      "type": "string",
      "description": "The library name used to import it, like `@myorg/my-awesome-lib`."
    },
    "strict": {
      "type": "boolean",
      "description": "Whether to enable `tsconfig` strict mode or not.",
      "default": true
    },
    "storybookConfiguration": {
      "description": "Whether to include storybook configuration for the generated library.",
      "type": "boolean",
      "default": false
    }
  },
  "required": ["directory"]
}
