V2-Stand: UX-Dashboard, Personen v2, Starter-Paket und Dexie-Legacy entfernt.
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>
This commit is contained in:
1 parent
234f87d408
commit
d894c3c8e4
91 files changed
+7196
-2134
No files matched your search
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Spielt docs/starter/starter-structure.json in die V2-Dev-DB ein (voller Wipe).
|
||||
* Usage: npm run bootstrap -- --yes
|
||||
* Ohne --yes / CONFIRM=1: Abbruch (Schutz vor versehentlichem Löschen).
|
||||
* Produktiv-Ports/DB-Namen werden blockiert.
|
||||
*/
|
||||
const args = new Set(process.argv.slice(2))
|
||||
const confirmed = args.has('--yes') || args.has('-y') || process.env.CONFIRM === '1'
|
||||
|
||||
if (!confirmed) {
|
||||
console.error('[bootstrap] Abbruch: würde die V2-Dev-DB komplett ersetzen.')
|
||||
console.error('[bootstrap] Zum Bestätigen: npm run bootstrap -- --yes')
|
||||
console.error('[bootstrap] Quelle: docs/starter/starter-structure.json')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const {
|
||||
readStarterPackage,
|
||||
importStarterPackage,
|
||||
summarizeStarter,
|
||||
STARTER_FILE,
|
||||
} = await import('../db/starterPackage')
|
||||
|
||||
const pkg = readStarterPackage()
|
||||
const counts = summarizeStarter(pkg)
|
||||
const { structureRows } = importStarterPackage(pkg)
|
||||
|
||||
console.log(`[bootstrap] Starter eingespielt (${structureRows} Struktur-Zeilen).`)
|
||||
console.log(`[bootstrap] Quelle: ${STARTER_FILE} (${pkg.exportedAt})`)
|
||||
for (const [table, n] of Object.entries(counts)) {
|
||||
if (n > 0) console.log(` ${table}: ${n}`)
|
||||
}
|
||||
console.log('[bootstrap] Keine Personen-/Meeting-Daten. API-Key lokal unter Config → KI setzen.')
|
||||
console.log('[bootstrap] Start: npm run dev:all → http://localhost:5174')
|
||||
Reference in new issue
Block a user