{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "tasks": [
    {
      "label": "generate:schemas",
      "type": "npm",
      "script": "generate:schemas",
      "presentation": {
        "reveal": "silent"
      }
    },
    {
      "label": "stacks-node:deploy-dev",
      "type": "shell",
      "command": "npm run devenv:deploy -- -d",
      "isBackground": true,
      "problemMatcher": [
        {
          "pattern": [{ "regexp": ".", "file": 1, "location": 2, "message": 3, }],
          "background": {
            "activeOnStart": true,
            "beginsPattern": ".",
            "endsPattern": ".",
          }
        },
      ]
    },
    {
      "label": "stacks-node:deploy-follower",
      "type": "shell",
      "command": "npm run devenv:follower -- -d && npm run devenv:logs",
      "isBackground": true,
      "problemMatcher": [
        {
          "pattern": [{ "regexp": ".", "file": 1, "location": 2, "message": 3, }],
          "background": {
            "activeOnStart": true,
            "beginsPattern": ".",
            "endsPattern": ".",
          }
        },
      ]
    },
    {
      "label": "stacks-node:stop-dev",
      "type": "shell",
      "command": "npm run devenv:stop",
      "presentation": {
        "echo": true,
        "reveal": "silent",
        "focus": false,
        "panel": "shared",
        "showReuseMessage": true,
        "clear": false
      }
    },
    {
      "label": "stacks-node:build-dev",
      "type": "shell",
      "command": "npm run devenv:build && npm run devenv:deploy"
    },
  ]
}
