From b790f999288a3a01571d973cb2fda39f260892b6 Mon Sep 17 00:00:00 2001 From: Macklin Underdown Date: Tue, 24 Jan 2017 21:51:46 -0500 Subject: [PATCH] Add danger pr VSCode debug configuration --- .vscode/launch.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0bd6102cb..21a18bb27 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -22,14 +22,16 @@ "outFiles": [ "${workspaceRoot}/distribution" ] - }, - { - "name": "Launch Local", + }, { + "name": "Launch PR", "type": "node", "request": "launch", - "program": "${workspaceRoot}/source/commands/danger-local.js", + "program": "${workspaceRoot}/distribution/commands/danger-pr.js", "stopOnEntry": false, - "args": [], + "args": [ + // pass a GitHub PR URL below for testing + ], + "envFile": "${workspaceRoot}/env/development.env", "cwd": "${workspaceRoot}", "preLaunchTask": "build", "runtimeExecutable": null, @@ -42,8 +44,8 @@ "console": "internalConsole", "sourceMaps": true, "outFiles": [ - "${workspaceRoot}/distribution" - ], + "${workspaceRoot}/distribution/**/*.js" + ] }, { "name": "Run Tests With Debugger (slower, use npm run watch for normal work)", "type": "node",