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",
"tasks": [
{
"label": "setup: server",
"type": "shell",
"command": "cd Server ; npm install"
},
{
"label": "build: server",
"type": "shell",
@ -26,6 +31,17 @@
"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"
]
}
]
}

View File

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