Skip to content

Instantly share code, notes, and snippets.

@JunSuzukiJapan
Created January 20, 2018 10:00
Show Gist options
  • Save JunSuzukiJapan/11dad60db0e14b4d00de00e16d8c69a0 to your computer and use it in GitHub Desktop.
Save JunSuzukiJapan/11dad60db0e14b4d00de00e16d8c69a0 to your computer and use it in GitHub Desktop.
VS Code tasks.json for Elixir/Mix
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "mix compile",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"panel": "new"
},
"problemMatcher": {
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.+):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"endLine": 4,
"endColumn": 5,
"severity": 6,
"message": 7
}
}
},
{
"label": "escript.build",
"type": "shell",
"command": "mix escript.build",
"group": {
"kind": "build",
"isDefault": false
},
"presentation": {
"panel": "new"
},
"problemMatcher": {
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.+):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"endLine": 4,
"endColumn": 5,
"severity": 6,
"message": 7
}
}
},
{
"label": "deps",
"type": "shell",
"command": "mix deps"
},
{
"label": "deps.get",
"type": "shell",
"command": "mix deps.get"
},
{
"label": "clean",
"type": "shell",
"command": "mix clean"
},
{
"label": "run",
"type": "shell",
"command": "mix run",
"presentation": {
"panel": "new"
},
"problemMatcher": []
},
{
"label": "test",
"type": "shell",
"command": "mix test",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"panel": "new"
},
"problemMatcher": [
{
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": [
{
"regexp": "\\s*\\d+\\).*\\(.*\\)$"
},
{
"regexp": "\\s+([^:]*):(\\d*)$",
"file": 1,
"line": 2
},
{
"regexp": "^\\s+(.*)$",
"message": 1
}
]
},
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment