From 84b0f19552acdcf5e54c39664a3a00f13d299ffd Mon Sep 17 00:00:00 2001 From: Kyle K Date: Mon, 13 Jul 2020 21:03:58 -0500 Subject: add tasks.json for vscode --- .vscode/tasks.json | 20 ++++++++++++++++++++ scratch.js | 27 ++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..353955d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,20 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Show in console", + "type": "shell", + "command": "node ${file}", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "always", + "clear": true, + "echo": false, + "showReuseMessage": false + } + } + ] +} \ No newline at end of file diff --git a/scratch.js b/scratch.js index ac96b46..1f47ce8 100644 --- a/scratch.js +++ b/scratch.js @@ -1,2 +1,27 @@ // to run currently open .js file in VSCode, hit 'Run->Run Without Debugging' (Ctrl+F5) -// Node.js needs to be installed, .js file needs to be opened from folder \ No newline at end of file +// Node.js needs to be installed, .js file needs to be opened from folder + +/* +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Show in console", + "type": "shell", + "command": "node ${file}", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "always", + "clear": true, + "echo": false, + "showReuseMessage": false + } + } + ] + } +*/ + +console.log("hello, world!") -- cgit v1.2.3