chore(repo): checkpoint current capakraken implementation state
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generate samples/PlanarchyExamples.xlsx from the live database.
|
||||
* Generate samples/CapaKrakenExamples.xlsx from the live database.
|
||||
*
|
||||
* Run from repo root:
|
||||
* DATABASE_URL=postgresql://capakraken:capakraken_dev@localhost:5433/capakraken \
|
||||
@@ -334,7 +334,7 @@ async function buildSummarySheet(wb: ExcelJS.Workbook) {
|
||||
] as ExcelJS.Column[];
|
||||
|
||||
const title = ws.getCell("A1");
|
||||
title.value = "Planarchy — Seed Data Summary";
|
||||
title.value = "CapaKraken — Seed Data Summary";
|
||||
title.font = { bold: true, size: 14, color: { argb: COLORS.headerBg } };
|
||||
ws.mergeCells("A1:B1");
|
||||
ws.getRow(1).height = 28;
|
||||
@@ -367,7 +367,7 @@ async function main() {
|
||||
console.log("Connecting to database...");
|
||||
|
||||
const wb = new ExcelJS.Workbook();
|
||||
wb.creator = "Planarchy";
|
||||
wb.creator = "CapaKraken";
|
||||
wb.created = new Date();
|
||||
wb.modified = new Date();
|
||||
|
||||
@@ -377,7 +377,7 @@ async function main() {
|
||||
await buildProjectsSheet(wb);
|
||||
await buildAllocationsSheet(wb);
|
||||
|
||||
const outPath = path.resolve(__dirname, "../../../samples/PlanarchyExamples.xlsx");
|
||||
const outPath = path.resolve(__dirname, "../../../samples/CapaKrakenExamples.xlsx");
|
||||
await wb.xlsx.writeFile(outPath);
|
||||
console.log(`Excel written to: ${outPath}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user