{
  "$schema": "http://json-schema.org/schema",
  "id": "SchematicsNxNgNew",
  "title": "Create an empty workspace",
  "type": "object",
  "properties": {
    "name": {
      "description": "The name of the workspace.",
      "type": "string",
      "format": "html-selector",
      "$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",
      "x-prompt": {
        "message": "Which stylesheet format would you like to use?",
        "type": "list",
        "items": [
          { "value": "css", "label": "CSS" },
          { "value": "scss", "label": "SCSS   [ http://sass-lang.com   ]" },
          { "value": "sass", "label": "SASS   [ http://sass-lang.com   ]" },
          { "value": "less", "label": "LESS   [ http://lesscss.org     ]" },
          { "value": "styl", "label": "Stylus [ http://stylus-lang.com ]" }
        ]
      }
    },
    "directory": {
      "type": "string",
      "format": "path",
      "description": "The directory name to create the workspace in.",
      "default": ""
    },
    "npmScope": {
      "type": "string",
      "description": "Npm scope for importing libs.",
      "x-prompt": "What is the npm scope you would like to use for your Nx Workspace?"
    },
    "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
    }
  }
}
