Skip to content

Commit

Permalink
Bug 1423565 - Update tasks.json as per documentation. r=rillian
Browse files Browse the repository at this point in the history
Most of the keywords used were deprecated and following versioning 0.1.0 even though it was marked as version 2.0.0.

This also defines build-binaries as the default task, so that Command-Shift-B doesn't need any confirmation.

MozReview-Commit-ID: UGDxqJYaFs
  • Loading branch information
Jean-Yves Avenard committed Dec 6, 2017
1 parent 812ad85 commit 8eca918
Showing 1 changed file with 75 additions and 41 deletions.
116 changes: 75 additions & 41 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,36 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"osx": {
"command": "${workspaceRoot}/mach"
},
"linux": {
"command": "${workspaceRoot}/mach"
},
"isShellCommand": true,
"args": ["--log-no-times"],
"showOutput": "silent",
"echoCommand": true,
"suppressTaskName": false,
"tasks": [
{
"taskName": "clobber"
"label": "clobber-python",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["clobber", "python"],
"problemMatcher": []
},
{
"taskName": "clobber-python",
"suppressTaskName": true,
"args": ["clobber", "python"]
"label": "configure",
"type":"shell",
"problemMatcher": []
},
{
"taskName": "configure"
},
{
"taskName": "build",
"isBuildCommand": true,
"label": "build",
"type":"shell",
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^.*?tools([^\\s]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"regexp": "^.*?([^\\s]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
Expand All @@ -45,9 +41,13 @@
}
},
{
"taskName": "build-binaries",
"suppressTaskName": true,
"args": ["build", "binaries"],
"label": "build-binaries",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["--log-no-times", "build", "binaries"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
Expand All @@ -59,12 +59,20 @@
"severity": 4,
"message": 5
}
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"taskName": "build-faster",
"suppressTaskName": true,
"args": ["build", "faster"],
"label": "build-faster",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["--log-no-times", "build", "faster"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
Expand All @@ -79,36 +87,50 @@
}
},
{
"taskName": "run",
"label": "run",
"type":"shell",
"args": ["-purgecaches"],
"showOutput": "always"
"problemMatcher": []
},
{
"taskName": "lint-wo",
"suppressTaskName": true,
"label": "lint-wo",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["lint", "-wo"],
"problemMatcher": ["$eslint-stylish"]
},
{
"taskName": "eslint",
"label": "eslint",
"type": "shell",
"problemMatcher": ["$eslint-stylish"]
},
{
"taskName": "eslint-fix",
"suppressTaskName": true,
"label": "eslint-fix",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["eslint", "--fix", "${file}"],
"problemMatcher": ["$eslint-stylish"]
},
{
"taskName": "test",
"label": "test",
"type":"shell",
"args": ["${relativeFile}"],
"isTestCommand": true,
"showOutput": "always"
"group":"test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"taskName": "mochitest",
"label": "mochitest",
"type":"shell",
"args": ["${relativeFile}"],
"showOutput": "always",
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
Expand All @@ -117,12 +139,16 @@
"file": 2,
"message": 3
}
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"taskName": "reftest",
"label": "reftest",
"type":"shell",
"args": ["${relativeFile}"],
"showOutput": "always",
"problemMatcher": {
"fileLocation": ["absolute"],
"pattern": {
Expand All @@ -131,12 +157,16 @@
"file": 2,
"message": 3
}
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"taskName": "xpcshell-test",
"label": "xpcshell-test",
"type":"shell",
"args": ["${relativeFile}", "--sequential"],
"showOutput": "always",
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
Expand All @@ -146,6 +176,10 @@
"location": 3,
"message": 4
}
},
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
Expand Down

0 comments on commit 8eca918

Please sign in to comment.