« get me outta code hell

upd8, write: general step summary defaults/fallback refactor - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write/build-modes
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-08 10:14:23 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-08 10:14:23 -0400
commitaffa543a2c564028f1cc6d54381dbec8691196fb (patch)
tree411b66738d1474d608694550f32d767c9600bebe /src/write/build-modes
parentce2eb1e09acdd5adb8a35485ccf635a73b84e5b9 (diff)
upd8, write: general step summary defaults/fallback refactor
Diffstat (limited to 'src/write/build-modes')
-rw-r--r--src/write/build-modes/live-dev-server.js10
-rw-r--r--src/write/build-modes/static-build.js10
2 files changed, 20 insertions, 0 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index 8160c8f9..ecd1d954 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -25,6 +25,16 @@ const defaultPort = 8002;
 
 export const description = `Hosts a local HTTP server which generates page content as it is requested, instead of all at once; reacts to changes in data files, so new reloads will be up-to-date with on-disk YAML data (<- not implemented yet, check back soon!)\n\nIntended for local development ONLY; this custom HTTP server is NOT rigorously tested and almost certainly has security flaws`;
 
+export const config = {
+  languageReloading: {
+    default: true,
+  },
+
+  thumbs: {
+    default: true,
+  },
+};
+
 function inspect(value, opts = {}) {
   return nodeInspect(value, {colors: ENABLE_COLOR, ...opts});
 }
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js
index f292fde0..bed24332 100644
--- a/src/write/build-modes/static-build.js
+++ b/src/write/build-modes/static-build.js
@@ -37,6 +37,16 @@ const pageFlags = Object.keys(pageSpecs);
 
 export const description = `Generates all page content in one build (according to the contents of data files at build time) and writes them to disk, preparing the output folder for upload and serving by any static web host\n\nIntended for any production or public-facing release of a wiki; serviceable for local development, but can be a bit unwieldy and time/CPU-expensive`;
 
+export const config = {
+  languageReloading: {
+    applicable: false,
+  },
+
+  thumbs: {
+    default: true,
+  },
+};
+
 export function getCLIOptions() {
   return {
     // This is the output directory. It's the one you'll upload online with