{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "NxStorybookConfigure",
  "title": "Storybook Configuration",
  "description": "Add Storybook configuration to a UI library or an application.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "aliases": ["project", "projectName"],
      "description": "Project for which to generate Storybook configuration.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "For which project do you want to generate Storybook configuration?",
      "x-dropdown": "projects"
    },
    "uiFramework": {
      "type": "string",
      "description": "Storybook UI Framework to use.",
      "enum": [
        "@storybook/angular",
        "@storybook/react",
        "@storybook/react-native",
        "@storybook/html",
        "@storybook/web-components",
        "@storybook/vue",
        "@storybook/vue3",
        "@storybook/svelte"
      ],
      "x-prompt": "What UI framework plugin should storybook use?"
    },
    "configureCypress": {
      "type": "boolean",
      "description": "Run the cypress-configure generator.",
      "x-prompt": "Configure a cypress e2e app to run against the storybook instance?"
    },
    "cypressDirectory": {
      "type": "string",
      "description": "A directory where the Cypress project will be placed. Added at root by default."
    },
    "linter": {
      "description": "The tool to use for running lint checks.",
      "type": "string",
      "enum": ["eslint", "tslint", "none"],
      "default": "eslint"
    },
    "js": {
      "type": "boolean",
      "description": "Generate JavaScript story files rather than TypeScript story files.",
      "default": false
    },
    "tsConfiguration": {
      "type": "boolean",
      "description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
      "default": false
    },
    "standaloneConfig": {
      "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
      "type": "boolean"
    }
  },
  "required": ["name"]
}
