{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "NxReactStorybookStories",
  "title": "Generate React Storybook stories",
  "description": "Generate stories/specs for all components declared in a project.",
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "aliases": ["name", "projectName"],
      "description": "Project for which to generate stories.",
      "$default": {
        "$source": "projectName",
        "index": 0
      },
      "x-prompt": "For which project do you want to generate stories?"
    },
    "generateCypressSpecs": {
      "type": "boolean",
      "description": "Automatically generate `*.spec.ts` files in the cypress e2e app generated by the cypress-configure generator.",
      "x-prompt": "Do you want to generate Cypress specs as well?"
    },
    "cypressProject": {
      "type": "string",
      "description": "The Cypress project to generate the stories under. This is inferred from `project` by default."
    },
    "js": {
      "type": "boolean",
      "description": "Generate JavaScript files rather than TypeScript files.",
      "default": false
    },
    "ignorePaths": {
      "type": "array",
      "description": "Paths to ignore when looking for components.",
      "items": {
        "type": "string",
        "description": "Path to ignore."
      },
      "examples": [
        "apps/my-app/src/not-stories/**",
        "**/**/src/**/not-stories/**",
        "libs/my-lib/**/*.something.ts",
        "**/**/src/**/*.other.*",
        "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
      ]
    }
  },
  "required": ["project"]
}
