mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-08-09 18:43:04 +00:00
gulpfile: use bundled hugo
This commit is contained in:
parent
76b0761338
commit
9d8a8f039d
|
@ -14,6 +14,7 @@ const imageResize = require('gulp-image-resize');
|
||||||
const parallel = require('concurrent-transform');
|
const parallel = require('concurrent-transform');
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
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 => {
|
||||||
|
@ -76,7 +77,7 @@ gulp.task('assets:scss', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('hugo', callback => {
|
gulp.task('hugo', callback => {
|
||||||
exec('hugo -s ./site/ -d ../build/ -v', (err, stdout, stderr) => {
|
exec(hugo + ' -s ./site/ -d ../build/ -v', (err, stdout, stderr) => {
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
|
@ -95,7 +96,7 @@ gulp.task('final:serve', (done) => {
|
||||||
gulp.watch('site/**/*.html', gulp.series('hugo'));
|
gulp.watch('site/**/*.html', gulp.series('hugo'));
|
||||||
gulp.watch('site/**/*.md', gulp.series('hugo'));
|
gulp.watch('site/**/*.md', gulp.series('hugo'));
|
||||||
|
|
||||||
gulp.watch('build/**/*.html').on('change', function(x) {
|
gulp.watch('build/**/*.html').on('change', (x) => {
|
||||||
browserSync.reload(x);
|
browserSync.reload(x);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
10
package.json
10
package.json
|
@ -20,7 +20,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bulma": "0.9.2",
|
"bulma": "0.9.2",
|
||||||
"concurrent-transform": "^1.0.0",
|
"concurrent-transform": "^1.0.0",
|
||||||
"cssnano": "^5.0.2",
|
"cssnano": "^5.0.5",
|
||||||
"fancy-log": "^1.3.3",
|
"fancy-log": "^1.3.3",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-concat": "^2.6.1",
|
"gulp-concat": "^2.6.1",
|
||||||
|
@ -28,12 +28,16 @@
|
||||||
"gulp-postcss": "^9.0.0",
|
"gulp-postcss": "^9.0.0",
|
||||||
"gulp-rename": "^2.0.0",
|
"gulp-rename": "^2.0.0",
|
||||||
"gulp-sass": "^4.1.0",
|
"gulp-sass": "^4.1.0",
|
||||||
|
"hugo-bin": "0.40.0",
|
||||||
"merge-stream": "^2.0.0",
|
"merge-stream": "^2.0.0",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"postcss": "^8.2"
|
"postcss": "^8.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.26.14",
|
"browser-sync": "^2.26.14",
|
||||||
"xo": "^0.40.1"
|
"xo": "^0.40.2"
|
||||||
|
},
|
||||||
|
"hugo-bin": {
|
||||||
|
"buildTags": "extended"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue