vscode: Make the build:dev script a npm task.
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 11 Feb 2021 23:04:27 +0000 (00:04 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 11 Feb 2021 23:04:27 +0000 (00:04 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.vscode/launch.json
.vscode/tasks.json

index 8a86588aa11d31c6977020fed716ee643f5e7b2f..c2c4c33f19bc39cdc7a5dc966f14967c8e0dea0a 100644 (file)
       "cwd": "${workspaceFolder}",
       "preLaunchTask": "Development build",
       "runtimeExecutable": "npm",
-      "runtimeArgs": [
-        "run-script",
-        "test:debug:vscode"
-      ],
-      "skipFiles": [
-        "<node_internals>/**"
-      ],
+      "runtimeArgs": ["run-script", "test:debug:vscode"],
+      "skipFiles": ["<node_internals>/**"],
       "stopOnEntry": true
     },
     {
       "cwd": "${workspaceFolder}",
       "preLaunchTask": "Development build",
       "runtimeExecutable": "npm",
-      "runtimeArgs": [
-        "run-script",
-        "benchmark:debug:vscode"
-      ],
-      "skipFiles": [
-        "<node_internals>/**"
-      ],
+      "runtimeArgs": ["run-script", "benchmark:debug:vscode"],
+      "skipFiles": ["<node_internals>/**"],
       "stopOnEntry": true
     }
   ]
index d9bd2624a48c5feded6fb477967c6b8b31f389af..ed1577700c35c42b9a2a0f9e26e262a7150c4b14 100644 (file)
@@ -3,8 +3,8 @@
   "tasks": [
     {
       "label": "Development build",
-      "type": "shell",
-      "command": "npm run build:dev"
+      "type": "npm",
+      "script": "build:dev"
     }
   ]
 }