Created
October 13, 2020 11:29
-
-
Save solnic/1dbbbb89515d35b291e6f1b72dbcfa2c to your computer and use it in GitHub Desktop.
VS Code tasks.json with custom shell configured
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"options": { | |
"shell": { | |
"executable": "/usr/local/bin/zsh", | |
"args": ["-l", "-c"] | |
} | |
}, | |
"tasks": [ | |
{ | |
"label": "check env", | |
"type": "shell", | |
"command": "env", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "check ruby version", | |
"type": "shell", | |
"command": "echo `ruby -v`", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "test all", | |
"type": "shell", | |
"command": "bin/rspec spec/**/*_spec.rb", | |
"problemMatcher": [], | |
"group": "test", | |
"presentation": { | |
"reveal": "always", | |
"focus": true | |
} | |
}, | |
{ | |
"label": "test current file", | |
"type": "shell", | |
"command": "bin/rspec ${relativeFile}", | |
"problemMatcher": [], | |
"group": "test", | |
"presentation": { | |
"reveal": "always", | |
"focus": true | |
} | |
}, | |
{ | |
"label": "test current line", | |
"type": "shell", | |
"command": "bin/rspec ${relativeFile}:${lineNumber}", | |
"problemMatcher": [], | |
"group": "test", | |
"presentation": { | |
"reveal": "always", | |
"focus": true | |
} | |
}, | |
{ | |
"label": "rubocop format", | |
"type": "shell", | |
"command": "rubocop -a ${relativeFile}", | |
"problemMatcher": [], | |
"group": "build", | |
"presentation": { | |
"reveal": "always" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment