mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-07-01 07:08:43 +00:00
Update submodules and build script (#248)
* deps: update dependencies * gulpfile: remove deprecated libraries * submodules: update submodule references
This commit is contained in:
parent
375205d6c9
commit
3fdaa387b5
10
gulpfile.js
10
gulpfile.js
|
@ -2,7 +2,8 @@ const fs = require('fs');
|
||||||
const exec = require('child_process').exec;
|
const exec = require('child_process').exec;
|
||||||
|
|
||||||
const gulp = require('gulp');
|
const gulp = require('gulp');
|
||||||
const util = require('gulp-util');
|
const log = require('fancy-log');
|
||||||
|
const parseArgs = require('minimist');
|
||||||
const merge = require('merge-stream');
|
const merge = require('merge-stream');
|
||||||
const sass = require('gulp-sass');
|
const sass = require('gulp-sass');
|
||||||
const postcss = require('gulp-postcss');
|
const postcss = require('gulp-postcss');
|
||||||
|
@ -110,7 +111,8 @@ gulp.task('final:publish', (done) => {
|
||||||
const cname = 'yuzu-emu.org';
|
const cname = 'yuzu-emu.org';
|
||||||
let finalCommand = null;
|
let finalCommand = null;
|
||||||
|
|
||||||
if (util.env.production) {
|
if (parseArgs(process.argv).production) {
|
||||||
|
process.env.NODE_ENV = 'production';
|
||||||
process.env.HUGO_ENV = 'PRD';
|
process.env.HUGO_ENV = 'PRD';
|
||||||
process.env.HUGO_BASEURL = `https://${cname}`;
|
process.env.HUGO_BASEURL = `https://${cname}`;
|
||||||
finalCommand = 'final:publish';
|
finalCommand = 'final:publish';
|
||||||
|
@ -120,8 +122,8 @@ if (util.env.production) {
|
||||||
finalCommand = 'final:serve';
|
finalCommand = 'final:serve';
|
||||||
}
|
}
|
||||||
|
|
||||||
util.log(`process.env.HUGO_ENV = '${process.env.HUGO_ENV}'`);
|
log.info(`process.env.HUGO_ENV = '${process.env.HUGO_ENV}'`);
|
||||||
util.log(`process.env.HUGO_BASEURL = '${process.env.HUGO_BASEURL}'`);
|
log.info(`process.env.HUGO_BASEURL = '${process.env.HUGO_BASEURL}'`);
|
||||||
|
|
||||||
gulp.task('default', gulp.series(gulp.parallel('assets:js', 'assets:scss'), 'hugo', 'assets:images', finalCommand));
|
gulp.task('default', gulp.series(gulp.parallel('assets:js', 'assets:scss'), 'hugo', 'assets:images', finalCommand));
|
||||||
gulp.task('all', gulp.series(gulp.parallel('scripts:compatdb', 'scripts:wiki'), gulp.parallel('assets:js', 'assets:scss'), 'hugo', 'assets:images', finalCommand));
|
gulp.task('all', gulp.series(gulp.parallel('scripts:compatdb', 'scripts:wiki'), gulp.parallel('assets:js', 'assets:scss'), 'hugo', 'assets:images', finalCommand));
|
||||||
|
|
13
package.json
13
package.json
|
@ -18,20 +18,21 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/yuzu-emu/yuzu-emu.github.io#readme",
|
"homepage": "https://github.com/yuzu-emu/yuzu-emu.github.io#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bulma": "0.9.0",
|
"bulma": "0.9.1",
|
||||||
"concurrent-transform": "^1.0.0",
|
"concurrent-transform": "^1.0.0",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
|
"fancy-log": "^1.3.3",
|
||||||
"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",
|
||||||
"gulp-postcss": "^8.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",
|
||||||
"gulp-util": "^3.0.8",
|
"merge-stream": "^2.0.0",
|
||||||
"merge-stream": "^2.0.0"
|
"minimist": "^1.2.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.26.12",
|
"browser-sync": "^2.26.13",
|
||||||
"xo": "^0.33.1"
|
"xo": "^0.37.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3a78c188239c90cb302e4bd39ac2f2cc3880ba48
|
Subproject commit 56a47f9e9e327c45a57c53fde43b3f9bbcadb4d5
|
|
@ -1 +1 @@
|
||||||
Subproject commit 68a67d2bb4b0bcf99c4e890ffac31bc1b23f9d08
|
Subproject commit 593a1003f2891ca1625d79bbf28f9e90dda2ec35
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
/* 2. Set the derived variables */
|
/* 2. Set the derived variables */
|
||||||
@import "./yuzu/yuzu_before_derived.scss";
|
@import "./yuzu/yuzu_before_derived.scss";
|
||||||
@import "./node_modules/bulma/sass/utilities/derived-variables.scss";
|
@import "./node_modules/bulma/sass/utilities/derived-variables.sass";
|
||||||
@import "./yuzu/yuzu_after_derived.scss";
|
@import "./yuzu/yuzu_after_derived.scss";
|
||||||
|
|
||||||
/* 3. Misc customization of Bulma */
|
/* 3. Misc customization of Bulma */
|
||||||
|
|
Loading…
Reference in a new issue