Files
com.xaymar.www/.vscode/tasks.json
T
Michael Fabian 'Xaymar' Dirks 8b029456e0 Allow serve and build from WSL
2023-03-18 22:46:46 +01:00

114 lines
1.8 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Serve (Windows)",
"type": "shell",
"command": "bundle",
"args": [
"exec",
"jekyll",
"serve",
"--watch",
"--trace",
"--livereload",
"--future",
"--unpublished",
"--drafts"
],
"group": "none",
"problemMatcher": []
},
{
"label": "Serve (WSL)",
"type": "process",
"options": {
"cwd": "build"
},
"command": "wsl",
"args": [
"-e",
"bundle",
"exec",
"jekyll",
"serve",
"--watch",
"--trace",
"--livereload",
"--future",
"--unpublished",
"--drafts"
],
"group": "none",
"problemMatcher": []
},
{
"label": "Build (Windows)",
"type": "shell",
"command": "bundle",
"args": [
"exec",
"jekyll",
"build",
"--incremental",
"--destination",
"build"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Build (WSL)",
"type": "process",
"options": {
"cwd": "build"
},
"command": "wsl",
"args": [
"-e",
"bundle",
"exec",
"jekyll",
"build",
"--incremental",
"--destination",
"build"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Publish (WSL+Windows)",
"dependsOn": [
"Build (Windows)"
],
"type": "process",
"options": {
"cwd": "build"
},
"command": "wsl",
"args": [
"-e",
"/usr/bin/rsync",
"-v",
"-h",
"-P",
"-a",
"--delete",
".",
"com.xaymar@xaymar.com:/var/www/com.xaymar/public/com.xaymar.www/"
],
"group": "build",
"problemMatcher": []
}
]
}