scripts/logo/measure-placeholders rasterises the Canva PDFs and measures each logo placeholder's ink box and density into slots.generated.ts. The new placement contains the logo in the measured box, shrinks denser logos by up to 30 percent to match visual weight, picks knockout or a white chip on dark surfaces, and passes an identity test per template. A contact sheet compares each placeholder with the Test Vendor logo and three test logos.
53 lines
1.8 KiB
JSON
53 lines
1.8 KiB
JSON
{
|
|
"name": "voiced",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"description": "Voiced — offline invoicing desktop app by Bongbetic",
|
|
"type": "module",
|
|
"author": "Bongbetic",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc --noEmit && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"tauri": "tauri",
|
|
"app:dev": "tauri dev",
|
|
"app:build": "tauri build --features custom-protocol",
|
|
"app:build:windows": "tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc --features custom-protocol",
|
|
"app:build:windows:offline": "tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc --features custom-protocol --config '{\"bundle\":{\"windows\":{\"webviewInstallMode\":{\"type\":\"offlineInstaller\"}}}}'",
|
|
"fonts:verify": "node scripts/fonts/verify.mjs",
|
|
"fonts:manifest": "node scripts/fonts/build-manifest.mjs",
|
|
"logo:measure": "node scripts/logo/measure-placeholders.mjs",
|
|
"logo:sheet": "node scripts/logo/contact-sheet.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@carbon/icons-react": "^11.89.0",
|
|
"@carbon/react": "^1.117.0",
|
|
"@carbon/styles": "^1.116.0",
|
|
"@ibm/plex": "^6.4.1",
|
|
"@react-pdf/renderer": "^4.9.0",
|
|
"@tauri-apps/api": "^2.12.1",
|
|
"@tauri-apps/plugin-dialog": "^2.8.1",
|
|
"@tauri-apps/plugin-opener": "^2.7.0",
|
|
"fontkit": "2.0.4",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"react-is": "^19.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tauri-apps/cli": "^2.12.1",
|
|
"@types/node": "^26.6.4",
|
|
"@types/react": "^19.2.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"@vitejs/plugin-react": "^5.2.0",
|
|
"pdfjs-dist": "6.4.299",
|
|
"sass": "^1.105.1",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.6",
|
|
"vitest": "^5.0.3"
|
|
},
|
|
"optionalDependencies": {
|
|
"@napi-rs/canvas": "^1.0.10"
|
|
}
|
|
}
|