{
  "$schema": "http://json-schema.org/schema",
  "$id": "Application",
  "title": "Generate an Deno application.",
  "description": "Setup a new Deno application in the workspace.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the application.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use?",
      "pattern": "^[a-zA-Z].*$"
    },
    "unitTestRunner": {
      "type": "string",
      "description": "Add a testing target for this application.",
      "enum": ["deno", "none"],
      "default": "deno"
    },
    "linter": {
      "type": "string",
      "description": "Add a linting target for this application.",
      "enum": ["deno", "none"],
      "default": "deno"
    },
    "tags": {
      "type": "string",
      "description": "Add tags to the project (used for linting)",
      "alias": "t"
    },
    "directory": {
      "type": "string",
      "description": "A directory where the project is placed",
      "alias": "d",
      "x-priority": "important"
    },
    "withWatch": {
      "type": "boolean",
      "description": "Default the project to watch for file changes for the 'serve' target. For projects that do not need watch capability (eg: CLI projects), use --with-watch=false.",
      "default": true
    },
    "denoDeploy": {
      "type": "boolean",
      "description": "Create a 'deploy' target for the project. This target uses Deno Deploy to host the serverless application. See: https://deno.com/deploy.",
      "default": false
    },
    "monorepo": {
      "type": "boolean",
      "description": "Creates an integrated monorepo.",
      "aliases": ["integrated"],
      "x-priority": "internal"
    },
    "rootProject": {
      "type": "boolean",
      "x-priority": "internal"
    },
    "framework": {
      "type": "string",
      "description": "Generate an app with a framework already setup.",
      "x-prompt": "What framework would you like to use?",
      "enum": ["oak", "none"],
      "default": "none"
    },
    "bundler": {
      "description": "Bundler which is used to package the application",
      "type": "string",
      "enum": ["esbuild", "deno_emit"],
      "default": "esbuild",
      "x-priority": "important"
    }
  },
  "required": ["name"]
}
