{
  "$schema": "http://json-schema.org/schema",
  "$id": "Stencil-Application",
  "title": "",
  "type": "object",
  "properties": {
    "directory": {
      "type": "string",
      "description": "A directory where the project is placed.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What directory would you like to use? (full path; e.g. apps/<my-app-name>)",
      "alias": "d"
    },
    "name": {
      "type": "string",
      "description": "A name of the project.",
      "alias": "n"
    },
    "tags": {
      "type": "string",
      "description": "Add tags to the project (used for linting)",
      "alias": "t"
    },
    "linter": {
      "description": "The tool to use for running lint checks.",
      "type": "string",
      "enum": ["eslint", "none"],
      "default": "eslint"
    },
    "e2eTestRunner": {
      "type": "string",
      "enum": ["puppeteer", "none"],
      "description": "Test runner to use for end to end (e2e) tests",
      "default": "puppeteer"
    },
    "unitTestRunner": {
      "type": "string",
      "enum": ["jest", "none"],
      "description": "Test runner to use for unit tests.",
      "default": "jest"
    },
    "skipFormat": {
      "type": "boolean",
      "default": false
    },
    "style": {
      "description": "The file extension to be used for style files.",
      "type": "string",
      "default": "css",
      "alias": "s",
      "x-prompt": {
        "message": "Which stylesheet format would you like to use?",
        "type": "list",
        "items": [
          {
            "value": "css",
            "label": "CSS"
          },
          {
            "value": "scss",
            "label": "SASS(.scss)       [ http://sass-lang.com          ]"
          }
        ]
      }
    }
  },
  "required": ["directory"]
}
