{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "All Build",
            "dependsOn":[
                "TypeScript Build Watch",
                "Web Atoms Dev Server",
                "Component Compiler"
            ],
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "TypeScript Build Watch",
            "type": "typescript",
            "tsconfig": "tsconfig.json",
            "option": "watch",
        },
        {
            "label": "Component Compiler",
            "command": "node",
            "isBackground": true,
            "presentation": {
                "echo": true,
                "reveal": "always",
                "focus": false,
                "panel": "dedicated"
            },
            "args": [
                "${env:APPDATA}/npm/node_modules/web-atoms-generator/bin/component-generator.js",
                "app"
            ],
            "problemMatcher": {
                "owner": "cc",
                "fileLocation": [
                    "relative",
                    "${workspaceFolder}"
                ],
                "pattern": {
                    "regexp": "^([^\\(].*)\\((\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
                    "file": 1,
                    "location": 2,
                    "severity": 3,
                    "code": 4,
                    "message": 5
                },
                "background": {
                    "activeOnStart": true,
                    "beginsPattern": "^\\s*\\d{1,2}:\\d{1,2}:\\d{1,2}(?: AM| PM)? - File change detected\\. Starting incremental compilation\\.\\.\\.",
                    "endsPattern": "^\\s*\\d{1,2}:\\d{1,2}:\\d{1,2}(?: AM| PM)? - Compilation complete\\. Watching for file changes\\."
                }
            }
        },
        {
            "label": "Web Atoms Dev Server",
            "command": "node",
            "args": [
                "${env:APPDATA}/npm/node_modules/web-atoms-dev-server/index.js",
                "https://v2018-test.800casting.com"
            ],
            "problemMatcher": []
        }
    ]
}