gulpfile: add bundled Hugo

This commit is contained in:
liushuyu 2022-02-12 20:38:23 -07:00
parent 4d51117e19
commit 999f0aa061
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
3 changed files with 953 additions and 16 deletions

View File

@ -11,6 +11,7 @@ const cssnano = require('cssnano');
const browserSync = require('browser-sync').create();
const concat = require('gulp-concat');
const imageResize = require('gulp-image-resize');
const hugo = require('hugo-bin');
gulp.task('scripts:games', function (callback) {
exec('yarn install && node app.js', { cwd: './scripts/shared-hugo-scripts/compatdb/' }, function (err, stdout, stderr) {
@ -67,7 +68,7 @@ gulp.task('assets:scss', function () {
});
gulp.task('hugo', function (cb) {
exec('hugo -s ./site/ -d ../build/ -v', function (err, stdout, stderr) {
exec(hugo + ' -s ./site/ -d ../build/ -v', function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
cb(err);

View File

@ -13,6 +13,7 @@
"browser-sync": "^2.27.7",
"cssnano": "^5.0.17",
"fancy-log": "^2.0.0",
"hugo-bin": "0.40.0",
"gulp": "^4.0.2",
"gulp-changed": "^4.0.3",
"gulp-clean-css": "^4.3.0",

965
yarn.lock

File diff suppressed because it is too large Load Diff