gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ops-www] branch master updated: more logging


From: gnunet
Subject: [taler-taler-ops-www] branch master updated: more logging
Date: Sun, 25 Feb 2024 00:38:49 +0100

This is an automated email from the git hooks/post-receive script.

nora pushed a commit to branch master
in repository taler-ops-www.

The following commit(s) were added to refs/heads/master by this push:
     new 993724f  more logging
993724f is described below

commit 993724f6da632e37c5773709d3e9b009c5ed37ca
Author: Nullptrderef <nullptrderef@national.shitposting.agency>
AuthorDate: Sun Feb 25 00:38:46 2024 +0100

    more logging
---
 build-system/fix-paths.mjs | 10 ++++++++--
 package.json               |  4 ++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/build-system/fix-paths.mjs b/build-system/fix-paths.mjs
index 55b862d..245af61 100644
--- a/build-system/fix-paths.mjs
+++ b/build-system/fix-paths.mjs
@@ -13,9 +13,15 @@ const distDirRead = fs
 
 distDirRead.forEach((targetFile) => {
   const oldContent = fs.readFileSync(targetFile, 'utf-8');
-  if (oldContent.includes('BASE_URL')) {
+  console.log(
+    'CHK',
+    targetFile,
+    '=>',
+    oldContent.includes('BASE_URL_RELATIVE_TO_FILE'),
+  );
+  if (oldContent.includes('BASE_URL_RELATIVE_TO_FILE')) {
     const newContent = oldContent.replace(
-      /BASE_URL/giu,
+      /BASE_URL_RELATIVE_TO_FILE/giu,
       path.relative(path.join(targetFile, '..'), distDir),
     );
     console.log('Patching file', targetFile);
diff --git a/package.json b/package.json
index 92c4241..1337718 100644
--- a/package.json
+++ b/package.json
@@ -5,8 +5,8 @@
     "build-css": "sass rendered/scss:rendered/css",
     "optimize-css": "for file in rendered/css/*.css; do purifycss $file 
'rendered/**/*.html' -m -i -o $file.pure.css; mv $file.pure.css $file;done;",
     "prepare-parcel": "rm -f rendered/index.html && for file in 
rendered/**/*.html; do echo \"<a href='$file'>...</a>\" >> rendered/index.html; 
done; sed -i 's/rendered/./g' rendered/index.html",
-    "build-parcel": "parcel build rendered/index.html --public-url BASE_URL",
-    "build-parcel-no-optimize": "parcel build rendered/index.html --public-url 
BASE_URL --no-optimize",
+    "build-parcel": "parcel build rendered/index.html --public-url 
BASE_URL_RELATIVE_TO_FILE",
+    "build-parcel-no-optimize": "parcel build rendered/index.html --public-url 
BASE_URL_RELATIVE_TO_FILE --no-optimize",
     "cleanup-parcel": "rm dist/index.html",
     "fix-parcel-paths": "node build-system/fix-paths.mjs"
   },

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]