UNPKG

@nx-plugins/vite

Version:

The Nx Plugin for Vite that contains executors, generators, and utilities for managing Vite applications and libraries within an Nx workspace.

77 lines (76 loc) 2.28 kB
{ "$schema": "http://json-schema.org/schema", "cli": "nx", "$id": "ViteProject", "title": "", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the project", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use?" }, "directory": { "type": "string", "description": "A directory where the project is placed", "alias": "d" }, "e2eTestRunner": { "type": "string", "enum": ["none","cypress","playwright-test", "playwright-vitest"], "description": "Test runner to use for end to end (E2E) tests", "default": "playwright-test" }, "linter":{ "type": "string", "enum": ["none","eslint"], "description": "Linter to use for code quality", "default": "eslint" }, "setParserOptionsProject": { "type": "boolean", "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.", "default": false }, "unitTestRunner": { "type": "string", "enum": ["vitest", "jest","none"], "description": "Test runner to use for unit tests", "default": "vitest" }, "js": { "type": "boolean", "default": false, "description": "Use JavaScript instead of TypeScript for config files" }, "port": { "type": "number", "description": "The port to use for the application", "default": 5173 }, "skipFormat": { "description": "Skip formatting files.", "type": "boolean", "default": false }, "skipPackageJson": { "type": "boolean", "default": false, "description": "Do not add dependencies to `package.json`." }, "standaloneConfig": { "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`", "type": "boolean" }, "tags": { "type": "string", "description": "Add tags to the project (used for linting)", "alias": "t" } }, "required": ["name"] }