From c1a01677517f1597e69677191d2ea17c5d1fd3c7 Mon Sep 17 00:00:00 2001 From: Juan Date: Mon, 22 Oct 2018 17:01:09 +0200 Subject: [PATCH] NPM task for services debugging --- .vscode/launch.json | 6 +++++- package.json | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c3b70b7f0a..de065d110e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,7 +4,11 @@ { "type": "node", "request": "attach", - "name": "Attach by Process ID", + "name": "Attach" + }, { + "type": "node", + "request": "attach", + "name": "Attach by process ID", "processId": "${command:PickProcess}" } ] diff --git a/package.json b/package.json index 895b243092..915f7702b3 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "scripts": { "test": "nodemon -q services_tests.js -w services", "dbtest": "nodemon -q db_tests.js -w services/db/tests", - "lint": "eslint ./ --cache --ignore-pattern .gitignore" + "lint": "eslint ./ --cache --ignore-pattern .gitignore", + "services": "node --inspect ./node_modules/gulp/bin/gulp.js services" } }