UNPKG

@nrwl/workspace

Version:

The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.

93 lines (92 loc) 2.65 kB
{ "$schema": "http://json-schema.org/schema", "$id": "NxWorkspacePreset", "cli": "nx", "title": "Creates applications in a new workspace", "description": "Creates applications in a new workspace.", "type": "object", "properties": { "preset": { "description": "The name of the preset.", "type": "string" }, "name": { "description": "The name of the application.", "type": "string" }, "npmScope": { "description": "Npm scope for importing libs.", "type": "string" }, "linter": { "description": "The tool to use for running lint checks.", "type": "string", "enum": ["eslint"], "default": "eslint" }, "routing": { "description": "Add routing to the generated application.", "type": "boolean", "default": true }, "style": { "description": "The file extension to be used for style files.", "type": "string", "default": "css", "x-prompt": { "message": "Which stylesheet format would you like to use?", "type": "list", "items": [ { "value": "css", "label": "CSS" }, { "value": "scss", "label": "SASS(.scss) [ http://sass-lang.com ]" }, { "value": "styl", "label": "Stylus(.styl)[ http://stylus-lang.com ]" }, { "value": "less", "label": "LESS [ http://lesscss.org ]" } ] } }, "standaloneApi": { "description": "Use Standalone Components if generating an Angular application.", "type": "boolean", "default": false }, "standaloneConfig": { "description": "Split the project configurations into `<projectRoot>/project.json` rather than including it inside `workspace.json`.", "type": "boolean", "default": true, "x-deprecated": "Nx only supports standaloneConfig" }, "packageManager": { "description": "The package manager used to install dependencies.", "type": "string", "enum": ["npm", "yarn", "pnpm"] }, "framework": { "description": "The framework which the application is using", "type": "string", "enum": ["express", "koa", "fastify", "connect"] }, "bundler": { "description": "The bundler to use for building the application.", "type": "string", "enum": ["webpack", "vite"], "default": "vite" }, "docker": { "description": "Generate a Dockerfile", "type": "boolean", "default": false } } }