Skip to content
Snippets Groups Projects
tasks.json 1.21 KiB
Newer Older
  • Learn to ignore specific revisions
  • Victor Löfgren's avatar
    Victor Löfgren committed
    {
        "version": "2.0.0",
        "tasks": [
            {
                "label": "Client",
                "type": "npm",
                "script": "start",
                "path": "client/",
                "group": "build",
                "problemMatcher": [],
                "presentation": {
                    "group": "Client/Server"
                }
            },
            {
                "label": "Server",
                "type": "shell",
                "group": "build",
    
    Victor Löfgren's avatar
    Victor Löfgren committed
                "command": "env/Scripts/python main.py",
    
    Victor Löfgren's avatar
    Victor Löfgren committed
                "problemMatcher": [],
                "options": {
                    "cwd": "${workspaceFolder}/server"
                },
                "presentation": {
                    "group": "Client/Server"
                }
            },
            {
                "label": "Test Server",
                "type": "shell",
                "group": "build",
    
    Victor Löfgren's avatar
    Victor Löfgren committed
                "command": "env/Scripts/pytest.exe --cov app tests/",
    
    Victor Löfgren's avatar
    Victor Löfgren committed
                "problemMatcher": [],
                "options": {
                    "cwd": "${workspaceFolder}/server"
                },
    
    Victor Löfgren's avatar
    Victor Löfgren committed
            },
            {
                "label": "Client + Server",
                "group": "build",
                "dependsOn": [
                    "Server",
                    "Client"
                ],
                "problemMatcher": []
            }
        ]
    }