gulpfile: add bundled Hugo
This commit is contained in:
parent
4d51117e19
commit
999f0aa061
|
@ -11,6 +11,7 @@ const cssnano = require('cssnano');
|
||||||
const browserSync = require('browser-sync').create();
|
const browserSync = require('browser-sync').create();
|
||||||
const concat = require('gulp-concat');
|
const concat = require('gulp-concat');
|
||||||
const imageResize = require('gulp-image-resize');
|
const imageResize = require('gulp-image-resize');
|
||||||
|
const hugo = require('hugo-bin');
|
||||||
|
|
||||||
gulp.task('scripts:games', function (callback) {
|
gulp.task('scripts:games', function (callback) {
|
||||||
exec('yarn install && node app.js', { cwd: './scripts/shared-hugo-scripts/compatdb/' }, function (err, stdout, stderr) {
|
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) {
|
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(stdout);
|
||||||
console.log(stderr);
|
console.log(stderr);
|
||||||
cb(err);
|
cb(err);
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"browser-sync": "^2.27.7",
|
"browser-sync": "^2.27.7",
|
||||||
"cssnano": "^5.0.17",
|
"cssnano": "^5.0.17",
|
||||||
"fancy-log": "^2.0.0",
|
"fancy-log": "^2.0.0",
|
||||||
|
"hugo-bin": "0.40.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-changed": "^4.0.3",
|
"gulp-changed": "^4.0.3",
|
||||||
"gulp-clean-css": "^4.3.0",
|
"gulp-clean-css": "^4.3.0",
|
||||||
|
|
Reference in New Issue