From 2fbb91cca456e77c0d53a9e29820be8ce037bc2f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 29 Jun 2020 11:43:09 -0400 Subject: [PATCH] Adds tasks for web extensions --- .vscode/tasks.json | 37 +++++++++++++++++++++++++++++++++++++ package.json | 3 +++ 2 files changed, 40 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 6c5a87c673a..421cc19c065 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -41,6 +41,43 @@ }, "problemMatcher": "$tsc" }, + { + "type": "npm", + "script": "watch-webd", + "label": "Build Web Extensions", + "group": "build", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "problemMatcher": { + "owner": "typescript", + "applyTo": "closedDocuments", + "fileLocation": [ + "absolute" + ], + "pattern": { + "regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$", + "file": 1, + "location": 2, + "message": 3 + }, + "background": { + "beginsPattern": "Starting compilation", + "endsPattern": "Finished compilation" + } + } + }, + { + "type": "npm", + "script": "kill-watch-webd", + "label": "Kill Build Web Extensions", + "group": "build", + "presentation": { + "reveal": "never", + }, + "problemMatcher": "$tsc" + }, { "label": "Run tests", "type": "shell", diff --git a/package.json b/package.json index f3b2495cf38..3c4470fe716 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,11 @@ "compile": "gulp compile --max_old_space_size=4095", "watch": "gulp watch --max_old_space_size=4095", "watchd": "deemon yarn watch", + "watch-webd": "deemon yarn watch-web", "kill-watchd": "deemon --kill yarn watch", + "kill-watch-webd": "deemon --kill yarn watch-web", "restart-watchd": "deemon --restart yarn watch", + "restart-watch-webd": "deemon --restart yarn watch-web", "watch-client": "gulp watch-client --max_old_space_size=4095", "mocha": "mocha test/unit/node/all.js --delay", "precommit": "node build/gulpfile.hygiene.js",