Husky Installation
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/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
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
// /config/appVersion
|
// /config/appVersion
|
||||||
APP_VERSION = "1.1.3";
|
export const APP_VERSION = "1.1.103";
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ patch++;
|
|||||||
const newVersion = `${major}.${minor}.${patch}`;
|
const newVersion = `${major}.${minor}.${patch}`;
|
||||||
|
|
||||||
// Dateiinhalt ersetzen
|
// Dateiinhalt ersetzen
|
||||||
const newContent = content.replace(versionRegex, `APP_VERSION = "${newVersion}"`);
|
const newContent = content.replace(versionRegex, `export const APP_VERSION = "${newVersion}"`);
|
||||||
|
|
||||||
// Datei speichern
|
// Datei speichern
|
||||||
fs.writeFileSync(versionFilePath, newContent, "utf8");
|
fs.writeFileSync(versionFilePath, newContent, "utf8");
|
||||||
|
|||||||
Reference in New Issue
Block a user