From c554cb5936594c643ad77f29a8ce5afa5dd95305 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 21 Oct 2024 03:24:07 +0200 Subject: [PATCH] Create VSCode launch configs --- .vscode/launch.json | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7da08ca --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,50 @@ +{ + // 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": [ + { + "request": "launch", + "name": "Dev Server", + "type": "node", + "program": "${workspaceFolder}/main.ts", + "cwd": "${workspaceFolder}", + "envFile": "${workspaceFolder}/local.env", + "runtimeExecutable": "/usr/bin/deno", + "runtimeArgs": [ + "run", + "--watch", + "--no-prompt", + "--allow-read='.,$HOME/.cache/deno,$HOME/.cache/node_modules'", + "--allow-env=DOTINO_POSTGRES_STRING,DOTINO_STRATZ_URL,DOTINO_STRATZ_KEY", + "--allow-sys=uid,gid", + "--allow-net=0.0.0.0:8080", + "--inspect-wait", + "src/main.ts" + ], + "attachSimplePort": 9229 + }, + { + + "request": "launch", + "name": "Init database", + "type": "node", + "program": "${workspaceFolder}/main.ts", + "cwd": "${workspaceFolder}", + "envFile": "${workspaceFolder}/local.env", + "runtimeExecutable": "/usr/bin/deno", + "runtimeArgs": [ + "run", + "--no-prompt", + "--allow-read='.'", + "--allow-env=DOTINO_POSTGRES_STRING", + "--allow-sys=uid,gid", + "--allow-net=0.0.0.0:8080", + "--inspect-wait", + "src/database/init/index.ts" + ], + "attachSimplePort": 9229 + }, + ] +} \ No newline at end of file