From c72ea1e6b3a3a9c4bbc50d8fd6996ee4d6287036 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sat, 18 Mar 2023 15:32:36 -0600 Subject: [PATCH] scripts/shared-hugo-scripts: use the latest commit --- .ci/build.sh | 3 +-- gulpfile.js | 8 ++++---- scripts/shared-hugo-scripts | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index 87e11325..9bf9c8cf 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -3,8 +3,7 @@ echo -e '\e[1m\e[36m========== Installing gulp & dependencies ==========\e[0m' yarn install # Install dependencies one-by-one to avoid race-conditions -yarn --cwd ./scripts/shared-hugo-scripts/wiki/ -yarn --cwd ./scripts/shared-hugo-scripts/compatdb/ +yarn --cwd ./scripts/shared-hugo-scripts/ yarn hugo version echo -e '\e[1m\e[36m========== Starting gulp deploy task ===============\e[0m' if [[ -n "${EPHEMERAL_BASE_URL}" ]]; then diff --git a/gulpfile.js b/gulpfile.js index bf11de2d..542fc0d8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,14 +10,14 @@ const parallel = require('concurrent-transform'); const browserSync = require('browser-sync').create(); // Gulp Run Tasks -gulp.task('scripts:compatdb', callback => { - exec('cd ./scripts/shared-hugo-scripts/compatdb/ && yarn install && node app.js', (err, stdout, stderr) => { +gulp.task('scripts:compatdb', function (callback) { + exec('yarn run compatdb', { cwd: './scripts/shared-hugo-scripts/' }, function (err, stdout, stderr) { callback(err); }); }); -gulp.task('scripts:wiki', callback => { - exec('cd ./scripts/shared-hugo-scripts/wiki/ && yarn install && node app.js', (err, stdout, stderr) => { +gulp.task('scripts:wiki', function (callback) { + exec('yarn run wiki', { cwd: './scripts/shared-hugo-scripts/' }, function (err, stdout, stderr) { callback(err); }); }); diff --git a/scripts/shared-hugo-scripts b/scripts/shared-hugo-scripts index 6607aac2..e22d9896 160000 --- a/scripts/shared-hugo-scripts +++ b/scripts/shared-hugo-scripts @@ -1 +1 @@ -Subproject commit 6607aac2f25352e6b35f1f4f99dc9f201603f11f +Subproject commit e22d9896a3d67f5395707a252ff887e55642e0ea