Sichert den lokalen Entwicklungsstand nach Gitea: Nav/Dashboard, Personen-Excel/Archiv, Team-Setup, Assignment-Übergabe und C6/C7/T2. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
676 B
TypeScript
23 lines
676 B
TypeScript
/**
|
|
* Exportiert Struktur/Config aus der V2-Dev-DB nach docs/starter/starter-structure.json.
|
|
* Usage: npm run starter:export
|
|
* Produktiv wird per Guard blockiert.
|
|
*/
|
|
import {
|
|
buildStarterPackageFromDb,
|
|
writeStarterPackage,
|
|
summarizeStarter,
|
|
STARTER_FILE,
|
|
} from '../db/starterPackage'
|
|
|
|
const pkg = buildStarterPackageFromDb()
|
|
const path = writeStarterPackage(pkg)
|
|
const counts = summarizeStarter(pkg)
|
|
|
|
console.log(`[starter:export] geschrieben: ${path}`)
|
|
console.log(`[starter:export] Stand: ${pkg.exportedAt}`)
|
|
for (const [table, n] of Object.entries(counts)) {
|
|
if (n > 0) console.log(` ${table}: ${n}`)
|
|
}
|
|
console.log(`[starter:export] Ziel: ${STARTER_FILE}`)
|