UNPKG

@nx/storybook

Version:

The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.

85 lines (84 loc) 2.82 kB
{ "$schema": "https://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": { "project": { "type": "string", "aliases": ["name", "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", "x-priority": "important" }, "interactionTests": { "type": "boolean", "description": "Set up Storybook interaction tests.", "x-prompt": "Do you want to set up Storybook interaction tests?", "alias": ["configureTestRunner"], "default": true }, "linter": { "description": "The tool to use for running lint checks.", "type": "string", "enum": ["eslint", "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": true, "x-priority": "important" }, "standaloneConfig": { "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.", "type": "boolean", "default": true, "x-deprecated": "Nx only supports standaloneConfig" }, "configureStaticServe": { "type": "boolean", "description": "Add a static-storybook to serve the static storybook built files.", "default": false }, "uiFramework": { "type": "string", "description": "Storybook UI Framework to use.", "enum": [ "@storybook/angular", "@storybook/nextjs", "@storybook/react-webpack5", "@storybook/react-vite", "@storybook/server-webpack5", "@storybook/svelte-vite", "@storybook/sveltekit", "@storybook/vue3-vite", "@storybook/web-components-vite" ], "aliases": ["storybook9UiFramework"], "x-prompt": "Choose the Storybook framework that you need to use.", "x-priority": "important", "hidden": false }, "skipFormat": { "description": "Skip formatting files.", "type": "boolean", "default": false, "x-priority": "internal" } }, "required": ["project", "uiFramework"], "examplesFile": "../../../docs/configuration-generator-examples.md" }