From 522ec8e0714ecf712f44a9e9fcb674f32e597f59 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 7 Jul 2020 17:29:30 +0200 Subject: [PATCH] Simplified debugging --- .vscode/launch.json | 18 +++++------------- package.json | 2 ++ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 37d9ac7f..d0f0e8eb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,24 +6,16 @@ "configurations": [ { "name": "bookshop", - "cwd": "${workspaceFolder}/bookshop", + "command": "cds watch bookshop", "request": "launch", - "type": "node", - "runtimeExecutable": "npx", - "runtimeArgs": ["-n"], - "args": ["--", "cds", "run", "--with-mocks", "--in-memory?"], - "console": "integratedTerminal", + "type": "node-terminal", "skipFiles": ["/**"] }, { - "name": "Fiori App", - "cwd": "${workspaceFolder}/fiori", + "name": "Fiori app", + "command": "cds watch fiori", "request": "launch", - "type": "node", - "runtimeExecutable": "npx", - "runtimeArgs": ["-n"], - "args": ["--", "cds", "run", "--with-mocks", "--in-memory?"], - "console": "integratedTerminal", + "type": "node-terminal", "skipFiles": ["/**"] } ], diff --git a/package.json b/package.json index f29d83fa..41936c96 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,8 @@ "sqlite3": "^4" }, "scripts": { + "bookshop": "cds watch bookshop", + "fiori": "cds watch fiori", "mocha": "npx mocha || echo", "jest": "npx jest --verbose", "test": "npm run jest -s"