UNPKG

@yolkai/nx-workspace

Version:

Extensible Dev Tools for Monorepos

116 lines (115 loc) 3.12 kB
{ "$schema": "http://json-schema.org/schema", "id": "NxWorkspaceNew", "title": "Create an empty workspace", "type": "object", "properties": { "name": { "description": "The name of the workspace.", "type": "string", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use for the workspace?" }, "style": { "description": "The file extension to be used for style files.", "type": "string", "default": "css" }, "directory": { "type": "string", "format": "path", "description": "The directory name to create the workspace in.", "default": "" }, "npmScope": { "type": "string", "description": "Npm scope for importing libs." }, "skipInstall": { "description": "Skip installing dependency packages.", "type": "boolean", "default": false }, "skipGit": { "description": "Skip initializing a git repository.", "type": "boolean", "default": false, "alias": "g" }, "commit": { "description": "Initial repository commit information.", "oneOf": [ { "type": "boolean" }, { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string", "format": "email" }, "message": { "type": "string" } }, "required": ["name", "email"] } ], "default": true }, "preset": { "description": "What to create in the new workspace", "enum": [ "angular", "react", "web-components", "angular-nest", "react-express", "next", "empty" ], "default": "empty", "x-prompt": { "message": "What to create in the new workspace (You can create other applications and libraries at any point using 'nx g')", "type": "list", "items": [ { "value": "empty", "label": "empty [an empty workspace]" }, { "value": "angular", "label": "angular [a workspace with a single Angular application]" }, { "value": "react", "label": "react [a workspace with a single React application]" }, { "value": "web-components", "label": "web components [a workspace with a single app built using web components]" }, { "value": "angular-nest", "label": "angular-nest [a workspace with a full stack application (Angular + Nest)]" }, { "value": "react-express", "label": "react-express [a workspace with a full stack application (React + Express)]" } ] } }, "appName": { "type": "string", "description": "Application name." } } }