Skip to content

Commit 2fbb91c

Browse files
author
Eric Amodio
committed
Adds tasks for web extensions
1 parent 009703b commit 2fbb91c

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.vscode/tasks.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,43 @@
4141
},
4242
"problemMatcher": "$tsc"
4343
},
44+
{
45+
"type": "npm",
46+
"script": "watch-webd",
47+
"label": "Build Web Extensions",
48+
"group": "build",
49+
"isBackground": true,
50+
"presentation": {
51+
"reveal": "never"
52+
},
53+
"problemMatcher": {
54+
"owner": "typescript",
55+
"applyTo": "closedDocuments",
56+
"fileLocation": [
57+
"absolute"
58+
],
59+
"pattern": {
60+
"regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$",
61+
"file": 1,
62+
"location": 2,
63+
"message": 3
64+
},
65+
"background": {
66+
"beginsPattern": "Starting compilation",
67+
"endsPattern": "Finished compilation"
68+
}
69+
}
70+
},
71+
{
72+
"type": "npm",
73+
"script": "kill-watch-webd",
74+
"label": "Kill Build Web Extensions",
75+
"group": "build",
76+
"presentation": {
77+
"reveal": "never",
78+
},
79+
"problemMatcher": "$tsc"
80+
},
4481
{
4582
"label": "Run tests",
4683
"type": "shell",

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
"compile": "gulp compile --max_old_space_size=4095",
1717
"watch": "gulp watch --max_old_space_size=4095",
1818
"watchd": "deemon yarn watch",
19+
"watch-webd": "deemon yarn watch-web",
1920
"kill-watchd": "deemon --kill yarn watch",
21+
"kill-watch-webd": "deemon --kill yarn watch-web",
2022
"restart-watchd": "deemon --restart yarn watch",
23+
"restart-watch-webd": "deemon --restart yarn watch-web",
2124
"watch-client": "gulp watch-client --max_old_space_size=4095",
2225
"mocha": "mocha test/unit/node/all.js --delay",
2326
"precommit": "node build/gulpfile.hygiene.js",

0 commit comments

Comments
 (0)