1.2 KiB
1.2 KiB
System Bootstrap
Fresh local development
npm install
npm run db:fresh
npm run typecheck
npm run dev
Fresh UAT or demo data
npm run db:fresh:uat
Reset and reseed existing local/UAT data
npm run seed:reset -- --allow-db-reset
Existing database upgrade
npm run db:migrate
npm run seed:system
PDF template reseed only
npm run seed:pdf-template
Product Item template version:
# create product-v1 as inactive version
node --experimental-strip-types scripts/reseed-pdf-template-version.ts --template-variant=product-v1
# create and activate product-v1 immediately
node --experimental-strip-types scripts/reseed-pdf-template-version.ts --template-variant=product-v1 --activate
# restore legacy 1.0 as active version
npm run seed:pdf-template
Verification
npm run typecheck
npm run build
npm run verify:encoding
npm run verify:crm-access
npm run audit:pdf
npm run audit:pdf:visual
Refresh PDF visual baselines:
npm run audit:pdf:visual:baseline
Script guide
db:*= database lifecycleseed:*= data bootstrapverify:*= validationaudit:*= diagnosticslegacy:*= historical task-specific tools