Clean version management with generated version.js

- Replace package.json modification with generated src/version.js
- App imports VERSION from ./version instead of package.json
- version.js is auto-generated during prebuild and git-ignored
- Provides VERSION, IS_RELEASE, and BUILD_TIME constants
- No more dirty git status from version changes

Development builds show 1.0.4-dev, tagged releases show 1.0.4
This commit is contained in:
2026-01-21 19:57:06 +01:00
parent 601f80ab06
commit 5379b1519d
5 changed files with 53 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ npm test -- --watchAll=false
echo ""
echo "🔨 Building React application..."
echo " (Version will be automatically tagged as -dev since not building from git tag)"
npm run build
echo ""