{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/powerpages.config.json",
  "additionalProperties": true,
  "title": "JSON schema for the Power Pages configuration file",
  "properties": {
    "siteName": {
      "type": "string",
      "description": "The name of the website"
    },
    "defaultLandingPage": {
      "type": "string",
      "description": "The path of the default HTML page to load when opening the website. This path should be relative to the compiledPath."
    },
    "compiledPath": {
      "type": "string",
      "description": "The path of the compiled output directory relative to powerpages.config.json file"
    },
    "bundleFilePatterns": {
      "type": "array",
      "description": "List of glob patterns (strings) identifying file patterns to be cleaned up from web-files before uploading to Power Pages.",
      "items": {
        "type": "string"
      }
    },
    "includeSource": {
      "type": "boolean",
      "description": "Whether to include source code when uploading files to Power Pages. Defaults to `false` if not specified."
    },
    "sourceExcludePatterns": {
      "type": "array",
      "description": "List of glob patterns (strings) identifying source file patterns to be excluded when uploading the site to Power Pages. This is only applicable if `includeSource` is set to `true`.",
      "items": {
        "type": "string"
      }
    }
  },
  "type": "object"
}
