Proje: Okul B2B App · Hub: Okul B2B App — Conventions

Versiyon Yönetimi Scripti

scripts/version.js — Versiyon bump ve release notes otomasyonu.

Komutlar

npm run version:patch  # 1.0.0 → 1.0.1
npm run version:minor  # 1.0.0 → 1.1.0
npm run version:major  # 1.0.0 → 2.0.0
npm run version:info   # Mevcut versiyon bilgisi
npm run release-notes  # Release notes oluştur

Bump Sırası

  1. package.json version güncelle
  2. app.config.ts version güncelle
  3. BuildInfo.ts constants güncelle
  4. Release notes oluştur
  5. Git tag oluştur (ör: v1.0.1)

ANCAK: Native build için android/app/build.gradle ve ios/Okulcomtr/Info.plist’i script güncellemez. Bu native dosyaları manuel artırmak gerekir!

Kritik Hatırlatma

app.config.ts native dizinler (android/, ios/) varken IGNORED. Gerçek version şuradan:

grep -A1 "versionCode" android/app/build.gradle
grep -A1 "CFBundleVersion" ios/Okulcomtr/Info.plist

Release Notes

npm run release-notes → git log’dan son commit’leri derler. Kayıt: build-output/ klasörü.