summaryrefslogtreecommitdiff
path: root/app/build.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
committerMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
commit3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch)
tree75be5fba4368472fb11c8015aee026b2b9a71888 /app/build.js
parent8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff)
downloadpluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'app/build.js')
-rw-r--r--app/build.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/app/build.js b/app/build.js
deleted file mode 100644
index 9d9b8fc..0000000
--- a/app/build.js
+++ /dev/null
@@ -1,37 +0,0 @@
-const fs = require('fs');
-let original = fs.readFileSync("./sw.src.js").toString();
-
-let fileList = [
- "/app/",
- "/-/demo",
- "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css",
- "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js",
- "/assets/logo/logo.png",
- "/assets/icons/right.svg"
-];
-function files(dir, sdir) {
- for (let file of fs.readdirSync(dir)) {
- if (file.startsWith(".")) continue;
-
- if (fs.lstatSync(dir + "/" + file).isDirectory()) {
- files(dir + "/" + file, sdir + "/" + file);
- } else {
- if (sdir + "/" + file !== "/app/build.js" && sdir + "/" + file !== "/app/fronters/dl.js" && sdir + "/" + file !== "/app/sw.src.js" && !file.endsWith(".php")) {
- fileList.push(sdir + "/" + file);
- }
- }
- }
-}
-
-files(".", "/app");
-console.log(JSON.stringify(fileList, null, 2));
-let fileList1 = fileList;
-
-fileList = [];
-files("../assets/uploads", "/assets/uploads");
-console.log(JSON.stringify(fileList, null, 2));
-let fileList2 = fileList;
-
-original = original.replace('[["%CacheData%"]]', JSON.stringify([...fileList1, ...fileList2], null, 4));
-
-fs.writeFileSync("./sw.js", fs.readFileSync("./localforage.js") + "\n\n" + original); \ No newline at end of file