{
  "$schema": "http://json-schema.org/schema",
  "$id": "DenoServerlessGenerator",
  "title": "Create a Deno Serverless Application",
  "description": "Create an app that is setup to run in a serverless environment.",
  "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"
    },
    "platform": {
      "type": "string",
      "description": "Setup serverless support for a specific platform.",
      "enum": ["netlify", "none"],
      "x-prompt": "Which platform would you like to use?",
      "default": "netlify"
    },
    "site": {
      "description": "The site/project name to deploy to",
      "type": "string",
      "x-priority": "important"
    },
    "bundler": {
      "description": "Bundler which is used to package the application",
      "type": "string",
      "enum": ["esbuild", "deno_emit"],
      "default": "esbuild",
      "x-priority": "important"
    }
  },
  "required": ["name"]
}
