first commit

This commit is contained in:
Chris Smith
2023-12-27 21:45:22 +01:00
commit 89ed936167
108 changed files with 16723 additions and 0 deletions

14
scripts/clearModules.js Normal file
View File

@@ -0,0 +1,14 @@
const fs = require("fs");
const clearModules = (filePath) => {
if (fs.existsSync(filePath)) {
let fileContent = fs.readFileSync(filePath, "utf8");
fileContent = fileContent.replace(/require\s*\([\s\S]*?\)/, "");
fs.writeFileSync(filePath, fileContent, "utf8");
} else {
console.log("File does not exist.");
}
};
clearModules("go.mod");
clearModules("exampleSite/go.mod");