From 4dd802adbc9bb708b23947db531725ac49418a08 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Sat, 7 Oct 2017 23:14:53 +0200 Subject: [PATCH] Added vscode tasks for the web-ext tool. --- .vscode/tasks.json | 55 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 6c0e27b..51b9e64 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -15,7 +15,9 @@ "osx": { "command": "eslint" }, - "args": ["./"], + "args": [ + "./" + ], "presentation": { "echo": true, "reveal": "silent", @@ -23,6 +25,57 @@ "panel": "shared" }, "problemMatcher": "$eslint-stylish" + }, + { + "taskName": "run", + "type": "shell", + "windows": { + "command": "web-ext" + }, + "linux": { + "command": "web-ext" + }, + "osx": { + "command": "web-ext" + }, + "args": [ + "run", + "-f", + "nightly", + "--url", + "http://canvasblocker.local/test/" + ], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "problemMatcher": [] + }, + { + "taskName": "build", + "type": "shell", + "windows": { + "command": "web-ext" + }, + "linux": { + "command": "web-ext" + }, + "osx": { + "command": "web-ext" + }, + "args": [ + "build", + "--overwrite-dest" + ], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "problemMatcher": [] } ] } \ No newline at end of file