Deleting worlds is now a separate task.

This commit is contained in:
Harrison Deng 2020-05-11 17:44:22 -05:00
parent 19552f1a2b
commit 44518270e1
2 changed files with 14 additions and 4 deletions

16
.vscode/tasks.json vendored
View File

@ -22,10 +22,18 @@
"group": "build"
},
{
"dependsOn": ["package"],
"label": "load build to server",
"label": "delete server world",
"type": "shell",
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load_latest_build.ps1"],
"options": {"cwd": "${workspaceFolder}/test-server/"},
"args": ["-ExecutionPolicy", "Bypass", "-File", "./delete_worlds.ps1"],
"command": "powershell",
"problemMatcher": []
},
{
"dependsOn": ["package"],
"label": "load build",
"type": "shell",
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load_build.ps1"],
"options": {"cwd": "${workspaceFolder}/test-server/"},
"command": "powershell",
"problemMatcher": [],
@ -39,7 +47,7 @@
}
},
{
"dependsOn": ["load build to server"],
"dependsOn": ["load build"],
"label": "start test server",
"type": "shell",
"runOptions": {"instanceLimit": 1},

View File

@ -0,0 +1,2 @@
write-Output "Deleting previous world if there was one..."
remove-Item -Recurse world* -Force -ErrorAction Ignore