{
  "$schema": "http://json-schema.org/schema",
  "$id": "xplatApp",
  "title": "Create an xplat app",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the app.",
      "alias": "n",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like for this app?"
    },
    "prefix": {
      "type": "string",
      "description": "The prefix to apply to generated selectors.",
      "alias": "p"
    },
    "framework": {
      "type": "string",
      "description": "Frontend framework."
    },
    "platforms": {
      "type": "string",
      "description": "Platforms.",
      "x-prompt": {
        "message": "What type of app would like to create?",
        "type": "list",
        "items": [
          {
            "value": "electron",
            "label": "electron        [Electron app]"
          },
          {
            "value": "express",
            "label": "express         [Express app]"
          },
          {
            "value": "ionic",
            "label": "ionic           [Ionic app]"
          },
          {
            "value": "nativescript",
            "label": "nativescript    [NativeScript app]"
          },
          {
            "value": "nest",
            "label": "nest            [Nest app]"
          },
          {
            "value": "node",
            "label": "node            [Node app]"
          },
          {
            "value": "react",
            "label": "react           [React app]"
          },
          {
            "value": "web",
            "label": "web             [Web app]"
          }
        ]
      }
    },
    "directory": {
      "description": "The directory of the new app.",
      "type": "string",
      "x-prompt": "In which directory should the app be generated? (Just press Enter for the default: directly in 'apps')"
    },
    "groupByName": {
      "description": "Group by app name (appname-platform) instead of the default (platform-appname)",
      "type": "boolean",
      "default": false
    },
    "target": {
      "type": "string",
      "description": "The target to use with this generator."
    },
    "npmScope": {
      "type": "string",
      "description": "The npm scope to use.",
      "alias": "wn"
    },
    "routing": {
      "type": "boolean",
      "description": "Use root routing module.",
      "default": true,
      "x-prompt": "Would you like to configure routing for this app?"
    },
    "setupSandbox": {
      "type": "boolean",
      "description": "Setup app as a sandbox for the workspace.",
      "default": false
    },
    "useXplat": {
      "description": "Generate xplat supporting architecture",
      "type": "boolean"
    },
    "skipInstall": {
      "type": "boolean",
      "description": "Skip installing dependencies.",
      "default": false
    }
  },
  "required": []
}
