Simplified debugging

This commit is contained in:
Daniel
2020-07-07 17:29:30 +02:00
parent 7b1c3d8b3a
commit 522ec8e071
2 changed files with 7 additions and 13 deletions

18
.vscode/launch.json vendored
View File

@@ -6,24 +6,16 @@
"configurations": [ "configurations": [
{ {
"name": "bookshop", "name": "bookshop",
"cwd": "${workspaceFolder}/bookshop", "command": "cds watch bookshop",
"request": "launch", "request": "launch",
"type": "node", "type": "node-terminal",
"runtimeExecutable": "npx",
"runtimeArgs": ["-n"],
"args": ["--", "cds", "run", "--with-mocks", "--in-memory?"],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"] "skipFiles": ["<node_internals>/**"]
}, },
{ {
"name": "Fiori App", "name": "Fiori app",
"cwd": "${workspaceFolder}/fiori", "command": "cds watch fiori",
"request": "launch", "request": "launch",
"type": "node", "type": "node-terminal",
"runtimeExecutable": "npx",
"runtimeArgs": ["-n"],
"args": ["--", "cds", "run", "--with-mocks", "--in-memory?"],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"] "skipFiles": ["<node_internals>/**"]
} }
], ],

View File

@@ -19,6 +19,8 @@
"sqlite3": "^4" "sqlite3": "^4"
}, },
"scripts": { "scripts": {
"bookshop": "cds watch bookshop",
"fiori": "cds watch fiori",
"mocha": "npx mocha || echo", "mocha": "npx mocha || echo",
"jest": "npx jest --verbose", "jest": "npx jest --verbose",
"test": "npm run jest -s" "test": "npm run jest -s"