From 8f832562f9ef0d2c282f0cda4cbbebb2d0d7010a Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 4 Mar 2025 14:29:42 +0100 Subject: [PATCH] Husky Installation --- .husky/pre-commit | 12 ++++++++++-- config/appVersion.js | 2 +- scripts/bumpVersion.js | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 20d0d06e5..61c9622a8 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,12 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" -npm run lint +# Husky v9 braucht KEINEN _/husky.sh mehr! + +# Falls du Linting willst: +# npm run lint + +# Falls du einfach nur die Version bumpen willst: +npm run bump-version + +# Version-Datei direkt ins Commit aufnehmen +git add ./config/appVersion.js diff --git a/config/appVersion.js b/config/appVersion.js index ddab32063..419b259f2 100644 --- a/config/appVersion.js +++ b/config/appVersion.js @@ -1,2 +1,2 @@ // /config/appVersion -APP_VERSION = "1.1.3"; +export const APP_VERSION = "1.1.103"; diff --git a/scripts/bumpVersion.js b/scripts/bumpVersion.js index 53d501a81..1d819da3f 100644 --- a/scripts/bumpVersion.js +++ b/scripts/bumpVersion.js @@ -25,7 +25,7 @@ patch++; const newVersion = `${major}.${minor}.${patch}`; // Dateiinhalt ersetzen -const newContent = content.replace(versionRegex, `APP_VERSION = "${newVersion}"`); +const newContent = content.replace(versionRegex, `export const APP_VERSION = "${newVersion}"`); // Datei speichern fs.writeFileSync(versionFilePath, newContent, "utf8");