Haru/Haru.code-workspace
2021-12-29 17:37:52 +01:00

101 lines
2.1 KiB
Plaintext

{
"folders": [
{
"path": "."
}
],
"settings": {
"window.title": "Haru Project"
},
"extensions": {
"recommendations": [
"hediet.vscode-drawio",
"ms-dotnettools.csharp"
]
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "setup: server",
"type": "shell",
"command": "cd Server ; npm install"
},
{
"label": "build: server",
"type": "shell",
"linux": {
"command": "cd Server ; npm run release:any"
},
"osx": {
"command": "cd Server ; npm run release:any"
},
"windows": {
"command": "cd Server ; npm run build"
}
},
{
"label": "build: launcher",
"type": "shell",
"linux": {
"command": "dotnet publish Launcher/Launcher.csproj /p:PublishProfile=Launcher/Properties/PublishProfiles/linux-x64.pubxml"
},
"osx": {
"command": "dotnet publish Launcher/Launcher.csproj /p:PublishProfile=Launcher/Properties/PublishProfiles/osx-x64.pubxml"
},
"windows": {
"command": "dotnet publish Launcher/Launcher.csproj /p:PublishProfile=Launcher/Properties/PublishProfiles/win-x64.pubxml"
}
},
{
"label": "build",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"build: server",
"build: launcher"
]
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Launcher",
"preLaunchTask": "build: launcher",
"type": "coreclr",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "externalTerminal",
"program": "",
"linux": {
"program": "Launcher/bin/Debug/net6.0/linux-x64/Launcher.dll",
},
"osx": {
"program": "Launcher/bin/Debug/net6.0/osx-x64/Launcher.dll",
},
"windows": {
"program": "Launcher/bin/Debug/net6.0/win-x64/Launcher.dll",
}
},
{
"name": "Server",
"preLaunchTask": "build: server",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "externalTerminal",
"runtimeExecutable": "npm",
"runtimeArgs": [
"--prefix",
"Server",
"run-script",
"debug"
]
}
]
}
}