Allow serve and build from WSL

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2023-03-18 22:46:46 +01:00
parent 08cc62112a
commit 8b029456e0
2 changed files with 52 additions and 4 deletions
+50 -4
View File
@@ -4,7 +4,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "Serve",
"label": "Serve (Windows)",
"type": "shell",
"command": "bundle",
"args": [
@@ -22,7 +22,30 @@
"problemMatcher": []
},
{
"label": "Build",
"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": [
@@ -40,9 +63,32 @@
"problemMatcher": []
},
{
"label": "Publish",
"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"
"Build (Windows)"
],
"type": "process",
"options": {
+2
View File
@@ -16,6 +16,7 @@ GEM
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ffi (1.15.5)
ffi (1.15.5-x64-mingw-ucrt)
ffi (1.15.5-x64-mingw32)
forwardable-extended (2.6.0)
@@ -84,6 +85,7 @@ GEM
PLATFORMS
x64-mingw-ucrt
x64-mingw32
x86_64-linux
DEPENDENCIES
eventmachine (= 1.2.7)!