niminit/config/tasks.json

38 lines
976 B
JSON
Raw Normal View History

{
"version": "2.0.0",
"tasks": [
{
"label": "nim: build current file",
"command": "nim",
"args": [
"c",
"-o:${workspaceRoot}/bin/${fileBasenameNoExtension}",
"-r", "${fileBasename}"
],
"options": {
"cwd": "${workspaceRoot}"
},
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "nim: build current file (for debugging)",
"command": "nim",
"args": [
"c",
"-g",
"--debugger:native",
"-o:${workspaceRoot}/bin/${fileBasenameNoExtension}",
"${relativeFile}"
],
"options": {
"cwd": "${workspaceRoot}"
},
"type": "shell"
}
]
}