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" "group": "build"
}, },
{ {
"dependsOn": ["package"], "label": "delete server world",
"label": "load build to server",
"type": "shell", "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/"}, "options": {"cwd": "${workspaceFolder}/test-server/"},
"command": "powershell", "command": "powershell",
"problemMatcher": [], "problemMatcher": [],
@ -39,7 +47,7 @@
} }
}, },
{ {
"dependsOn": ["load build to server"], "dependsOn": ["load build"],
"label": "start test server", "label": "start test server",
"type": "shell", "type": "shell",
"runOptions": {"instanceLimit": 1}, "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