Improve vscode workflow

This commit is contained in:
Merijn Hendriks 2021-12-29 00:57:58 +01:00
parent 0fbefbe628
commit cfcd9531f9
2 changed files with 18 additions and 3 deletions

16
.vscode/tasks.json vendored
View File

@ -1,6 +1,11 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"label": "setup: server",
"type": "shell",
"command": "cd Server ; npm install"
},
{ {
"label": "build: server", "label": "build: server",
"type": "shell", "type": "shell",
@ -26,6 +31,17 @@
"windows": { "windows": {
"command": "dotnet publish Launcher/Launcher.csproj /p:PublishProfile=Launcher/Properties/PublishProfiles/win-x64.pubxml" "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"
]
} }
] ]
} }

View File

@ -27,9 +27,8 @@ Solution Explorer > Server > npm > install npm Packages
### Setup ### Setup
`npm --prefix Server install` Terminal > Run Task > setup: server
### Build ### Build
1. Terminal > Run Task > release: launcher Terminal > Run Build Task
2. Terminal > Run Task > release: server