niminit/config/tasks.json
2023-03-06 19:53:08 +01:00

37 lines
976 B
JSON

{
"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"
}
]
}