summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vscode/tasks.json20
-rw-r--r--scratch.js27
2 files changed, 46 insertions, 1 deletions
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!")