Use docker commands by default

This commit is contained in:
KingOfDog 2022-09-14 07:52:15 +00:00
parent fb5f227229
commit f332a0a119

View File

@ -6,10 +6,8 @@
{ {
"label": "latexmk", "label": "latexmk",
"type": "shell", "type": "shell",
"command": "./build.sh pandoc", // "command": "./build.sh pandoc",
"windows": { "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh pandoc",
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh pandoc"
},
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
@ -19,20 +17,16 @@
{ {
"label": "clean", "label": "clean",
"type": "shell", "type": "shell",
"command": "./build.sh clean", // "command": "./build.sh clean",
"windows": { "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh clean",
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh clean"
},
"group": "none", "group": "none",
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "wordcount", "label": "wordcount",
"type": "shell", "type": "shell",
"command": "pandoc --lua-filter=wordcount.lua chapter/out.md", // "command": "pandoc --lua-filter=wordcount.lua chapter/out.md",
"windows": { "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest pandoc --lua-filter=/work/wordcount.lua /work/chapter/out.md",
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest pandoc --lua-filter=/work/wordcount.lua /work/chapter/out.md"
},
"group": "none", "group": "none",
"problemMatcher": [] "problemMatcher": []
}, },