mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-08-31 13:22:01 +00:00
deps: update Hugo and other dependencies
This commit is contained in:
parent
795a457411
commit
88e63ef870
12
gulpfile.js
12
gulpfile.js
|
@ -8,7 +8,6 @@ const concat = require('gulp-concat');
|
||||||
const imageResize = require('gulp-image-resize');
|
const imageResize = require('gulp-image-resize');
|
||||||
const parallel = require('concurrent-transform');
|
const parallel = require('concurrent-transform');
|
||||||
const browserSync = require('browser-sync').create();
|
const browserSync = require('browser-sync').create();
|
||||||
const hugo = require('hugo-bin');
|
|
||||||
|
|
||||||
// Gulp Run Tasks
|
// Gulp Run Tasks
|
||||||
gulp.task('scripts:compatdb', callback => {
|
gulp.task('scripts:compatdb', callback => {
|
||||||
|
@ -17,12 +16,6 @@ gulp.task('scripts:compatdb', callback => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('scripts:twitter', callback => {
|
|
||||||
exec('cd ./scripts/shared-hugo-scripts/twitter/ && yarn install && node app.js', (err, stdout, stderr) => {
|
|
||||||
callback(err);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task('scripts:wiki', callback => {
|
gulp.task('scripts:wiki', callback => {
|
||||||
exec('cd ./scripts/shared-hugo-scripts/wiki/ && yarn install && node app.js', (err, stdout, stderr) => {
|
exec('cd ./scripts/shared-hugo-scripts/wiki/ && yarn install && node app.js', (err, stdout, stderr) => {
|
||||||
callback(err);
|
callback(err);
|
||||||
|
@ -57,8 +50,9 @@ gulp.task('assets:js', () => {
|
||||||
.pipe(gulp.dest('build/js'));
|
.pipe(gulp.dest('build/js'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('hugo', callback => {
|
gulp.task('hugo', async (callback) => {
|
||||||
exec(hugo + ' -s ./site/ -d ../build/ -v --gc', (err, stdout, stderr) => {
|
const hugo = await import('hugo-bin');
|
||||||
|
exec(hugo.default + ' -s ./site/ -d ../build/ -v --gc', (err, stdout, stderr) => {
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
"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.76.1",
|
"hugo-bin": "0.79.0",
|
||||||
"merge-stream": "^2.0.0",
|
"merge-stream": "^2.0.0",
|
||||||
"minimist": "^1.2.5"
|
"minimist": "^1.2.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.27.5",
|
"browser-sync": "^2.27.7",
|
||||||
"xo": "^0.44.0"
|
"xo": "^0.47.0"
|
||||||
},
|
},
|
||||||
"hugo-bin": {
|
"hugo-bin": {
|
||||||
"buildTags": "extended"
|
"buildTags": "extended"
|
||||||
|
|
Loading…
Reference in a new issue