diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..998e9bd --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,41 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Client", + "type": "node", + "request": "launch", + "cwd": "${workspaceFolder}/client", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run-script", + "dev" + ], + "preLaunchTask": "Install Client Dependencies", + "outFiles": [ + "${workspaceFolder}/client/out/**/*.js" + ] + }, + { + "name": "Launch Service", + "type": "node", + "request": "launch", + "cwd": "${workspaceFolder}/service", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run-script", + "dev" + ], + "preLaunchTask": "Seed Service Database", + "outFiles": [ + "${workspaceFolder}/service/out/**/*.js" + ] + } + ], + "compounds": [ + { + "name": "Launch Client and Service Together", + "configurations": ["Launch Client", "Launch Service"] + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..b6f7ae4 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Install Client Dependencies", + "type": "shell", + "command": "npm", + "args": [ + "install" + ], + "options": { + "cwd": "${workspaceFolder}/client" + } + }, + { + "label": "Install Service Dependencies", + "type": "shell", + "command": "npm", + "args": [ + "install" + ], + "options": { + "cwd": "${workspaceFolder}/service" + } + }, + { + "label": "Seed Service Database", + "type": "shell", + "command": "npx", + "args": [ + "prisma", + "db", + "seed" + ], + "options": { + "cwd": "${workspaceFolder}/service" + }, + "dependsOn": "Install Service Dependencies" + } + ] +}