Skip to content

Instantly share code, notes, and snippets.

@bowmanmike
Created June 6, 2020 21:10
Show Gist options
  • Save bowmanmike/49ec76067ba65fdc09217e091fd8200d to your computer and use it in GitHub Desktop.
Save bowmanmike/49ec76067ba65fdc09217e091fd8200d to your computer and use it in GitHub Desktop.
VSCode Elixir tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "mix test -- all",
"type": "shell",
"group": "test",
"command": "mix test",
"problemMatcher": [
"$mixCompileError",
"$mixCompileWarning",
"$mixTestFailure"
],
},
{
"label": "mix test -- file",
"type": "shell",
"group": "test",
"command": [
"mix test",
"${file}"
],
"problemMatcher": [
"$mixCompileError",
"$mixCompileWarning",
"$mixTestFailure"
],
},
{
"label": "mix test -- nearest",
"type": "shell",
"group": {
"isDefault": true,
"kind": "test"
},
"command": [
"mix test",
"${file}:${lineNumber}"
],
"problemMatcher": [
"$mixCompileError",
"$mixCompileWarning",
"$mixTestFailure"
],
},
{
"label": "mix compile",
"type": "shell",
"group": "build",
"command": "mix compile",
"problemMatcher": [
"$mixCompileError",
"$mixCompileWarning",
"$mixTestFailure"
]
},
{
"label": "mix format",
"type": "shell",
"group": "build",
"command": "mix format",
"problemMatcher": [
"$mixCompileError",
"$mixCompileWarning",
"$mixTestFailure"
]
},
{
"label": "mix lint",
"type": "shell",
"group": "build",
"command": "mix lint",
"problemMatcher": [
"$mixCompileError",
"$mixCompileWarning",
"$mixTestFailure"
]
},
{
"label": "mix compile, format, lint",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"mix compile",
"mix format",
"mix lint"
],
"dependsOrder": "sequence"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment