From 73e070c78854f42ebdccf9cff8bc31f1f905845d Mon Sep 17 00:00:00 2001 From: Rob Moran Date: Sat, 4 Jan 2020 15:08:49 +0000 Subject: [PATCH] Include launch and task config --- .gitignore | 1 - .vscode/launch.json | 30 ++++++++++++++++++++++++++++++ .vscode/tasks.json | 15 +++++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 6c9e539..00d9380 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .DS_Store -.vscode .rpt2_cache node_modules dist diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..b3f857b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,30 @@ +{ + // 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 Flash", + "program": "${workspaceFolder}/examples/daplink-flash/usb.js", + "args": [ + "binaries/microbit-green.hex" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Launch Serial", + "program": "${workspaceFolder}/examples/daplink-serial/usb.js" + }, + { + "type": "node", + "request": "launch", + "name": "Launch Registers", + "program": "${workspaceFolder}/examples/read-registers/hid.js", + "sourceMaps": true + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..9b404d2 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "watch", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +}