mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-07-09 04:31:20 +00:00
gulpfile: fix an issue with gulp task ...
... where Hugo build task is incorrectly not `await`ed
This commit is contained in:
parent
50bf1cfa80
commit
41c4525427
11
gulpfile.js
11
gulpfile.js
|
@ -50,11 +50,12 @@ gulp.task('assets:js', () => {
|
||||||
.pipe(gulp.dest('build/js'));
|
.pipe(gulp.dest('build/js'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('hugo', async (callback) => {
|
gulp.task('hugo', (callback) => {
|
||||||
const hugo = await import('hugo-bin');
|
import('hugo-bin').then((hugo) => {
|
||||||
exec(hugo.default + ' -s ./site/ -d ../build/ -v --gc', (err, stdout, stderr) => {
|
exec(hugo.default + ' -s ./site/ -d ../build/ -v --gc', (err, stdout, stderr) => {
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
callback(err);
|
callback(err);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-concat": "^2.6.1",
|
"gulp-concat": "^2.6.1",
|
||||||
"gulp-image-resize": "^0.13.1",
|
"gulp-image-resize": "^0.13.1",
|
||||||
"hugo-bin": "0.79.2",
|
"hugo-bin": "0.80.1",
|
||||||
"merge-stream": "^2.0.0",
|
"merge-stream": "^2.0.0",
|
||||||
"minimist": "^1.2.5"
|
"minimist": "^1.2.5"
|
||||||
},
|
},
|
||||||
|
|
14
yarn.lock
14
yarn.lock
|
@ -237,9 +237,9 @@
|
||||||
integrity sha512-cz8HFjOFfUBtvN+NXYSFMHYRdxZMaEl0XypVrhzxBgadKIXhIkRd8aMeHhmF56Sl7SuS8OnUpQ73/k9LE4VnLg==
|
integrity sha512-cz8HFjOFfUBtvN+NXYSFMHYRdxZMaEl0XypVrhzxBgadKIXhIkRd8aMeHhmF56Sl7SuS8OnUpQ73/k9LE4VnLg==
|
||||||
|
|
||||||
"@jridgewell/sourcemap-codec@^1.4.9":
|
"@jridgewell/sourcemap-codec@^1.4.9":
|
||||||
version "1.4.9"
|
version "1.4.10"
|
||||||
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.9.tgz#6963babca1e1b8a8dc1c379bd4bd2bf9c21c356a"
|
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.10.tgz#baf57b4e2a690d4f38560171f91783656b7f8186"
|
||||||
integrity sha512-iKsUDLGOrC5pSdVTyb8zJI/f55wItTzGtfGWiWPWTc8h2P4oucax7XOGSRq9V2aA1nwE8qMaGvwdXk3PZRtgjg==
|
integrity sha512-Ht8wIW5v165atIX1p+JvKR5ONzUyF4Ac8DZIQ5kZs9zrb6M8SJNXpx1zn04rn65VjBMygRoMXcyYwNK0fT7bEg==
|
||||||
|
|
||||||
"@jridgewell/trace-mapping@^0.2.7":
|
"@jridgewell/trace-mapping@^0.2.7":
|
||||||
version "0.2.7"
|
version "0.2.7"
|
||||||
|
@ -3187,10 +3187,10 @@ http-proxy@^1.18.1:
|
||||||
follow-redirects "^1.0.0"
|
follow-redirects "^1.0.0"
|
||||||
requires-port "^1.0.0"
|
requires-port "^1.0.0"
|
||||||
|
|
||||||
hugo-bin@0.79.2:
|
hugo-bin@0.80.1:
|
||||||
version "0.79.2"
|
version "0.80.1"
|
||||||
resolved "https://registry.yarnpkg.com/hugo-bin/-/hugo-bin-0.79.2.tgz#cdea09af91429fcd65cc88571e070403be00fa80"
|
resolved "https://registry.yarnpkg.com/hugo-bin/-/hugo-bin-0.80.1.tgz#6932b8eaf3b44a1242b4cec21c54f7550a10cd42"
|
||||||
integrity sha512-Oik01vhaWcmZXYlBgVGCdidoJqcEsU7aEhXwgGgnPa9fiIDDwtLG4cTJEyEKwcgdk9JXSAofPOgbtudbQDCJQg==
|
integrity sha512-FXhgwTGA2S4jWIci4BT4kt0vpt/n+wJSNbfvFHhcJJwTcce9ONIO360CPDudwHoQRfSm5ts5mQ5y+CWAeD7fZA==
|
||||||
dependencies:
|
dependencies:
|
||||||
bin-wrapper "^4.1.0"
|
bin-wrapper "^4.1.0"
|
||||||
picocolors "^1.0.0"
|
picocolors "^1.0.0"
|
||||||
|
|
Loading…
Reference in a new issue