diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..20734ed --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,32 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "msedge", + "request": "launch", + "name": "Launch Client (Edge)", + "skipFiles": [ + "/**" + ], + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}", + "preLaunchTask": "start server", + "postDebugTask": "stop server" + }, + { + "type": "chrome", + "request": "launch", + "name": "Launch Client (Chrome)", + "skipFiles": [ + "/**" + ], + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}", + "preLaunchTask": "start server", + "postDebugTask": "stop server" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..e855276 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,39 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "start server", + "type": "npm", + "script": "start", + "isBackground": true, + "options": { + "env": { + "VERSION": "Local build" + } + }, + "problemMatcher": { + "pattern": { + "regexp": "ˆ$" + }, + "background": { + "activeOnStart": true, + "beginsPattern": "Compiling...", + "endsPattern": "Compiled .*" + } + } + }, + { + "label": "stop server", + "command": "echo ${input:terminate}", + "type": "shell" + } + ], + "inputs": [ + { + "id": "terminate", + "type": "command", + "command": "workbench.action.tasks.terminate", + "args": "terminateAll" + } + ] +} \ No newline at end of file