From 39f4a7c1bc2d9ec4ef5761c2b009f9da1dcd3b93 Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Wed, 31 Jul 2019 16:32:35 -0400 Subject: [PATCH] Enabled debugging support # Conflicts: # src/DataProviders/HarmonyDataProvider.ts --- .vscode/launch.json | 16 ++++++++++++++++ .vscode/tasks.json | 17 +++++++++++++++++ tsconfig.json | 1 + 3 files changed, 34 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..76b1657 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "preLaunchTask": "build and install", + "program": "/Users/brandonwatson/.npm-global/bin/homebridge", + "sourceMaps": true, + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..ad92e87 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "build", + "problemMatcher": [] + }, + { + "type": "shell", + "label": "build and install", + "command": "npm run build&&sudo npm install -g --unsafe-perm ." + } + ] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index dbe99c3..9bcfa13 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "declaration": true, "outDir": "./bin", "strict": true, + "sourceMap": true, }, "include": [ "src"