{
  "$schema": "http://json-schema.org/schema",
  "$id": "xplatAppGen",
  "title": "Generate an xplat app",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the app.",
      "alias": "n",
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "prefix": {
      "type": "string",
      "description": "The prefix to apply to generated selectors.",
      "alias": "p"
    },
    "platforms": {
      "type": "string",
      "description": "Platforms."
    },
    "framework": {
      "type": "string",
      "description": "Frontend framework.",
      "default": "angular",
      "x-prompt": {
        "message": "Which frontend framework should it use?",
        "type": "list",
        "items": [
          {
            "value": "angular",
            "label": "angular        [Angular app]"
          },
          {
            "value": "",
            "label": "none           [vanilla app]"
          }
        ]
      }
    },
    "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": "Configure routing.",
      "default": false
    },
    "setupSandbox": {
      "type": "boolean",
      "description": "Setup app as a sandbox for the workspace.",
      "default": false
    },
    "useXplat": {
      "description": "Generate xplat supporting architecture",
      "type": "boolean",
      "default": true,
      "x-prompt": "Use xplat supporting architecture?"
    },
    "skipInstall": {
      "type": "boolean",
      "description": "Skip installing dependencies.",
      "default": false
    }
  },
  "required": []
}
