Skip to content
← Public packages

@kentcdodds/invisible-software-talk

Invisible Software: Kent C. Dodds's AI Coding Summit NYC 2026 talk deck. Agents become software's next billion users.

FollowForkOpen app

Files

contact.mjs

21 lines · 1.0 KB · JavaScript
// Copies the 1920x1080 verify screenshots into screenshots/<theme>/ and builds one contact sheet
// PNG per theme (screenshots/contact-<theme>.png). Needs ImageMagick (montage). Run verify first.
import { execFileSync } from 'node:child_process'
import { cpSync, mkdirSync, readdirSync, rmSync } from 'node:fs'
import { join } from 'node:path'

const root = new URL('..', import.meta.url).pathname
for (const theme of ['dark', 'light']) {
	const from = join(root, 'verify-shots', theme)
	const to = join(root, 'screenshots', theme)
	rmSync(to, { recursive: true, force: true })
	mkdirSync(to, { recursive: true })
	const files = readdirSync(from).filter((f) => f.endsWith('.png')).sort()
	for (const f of files) cpSync(join(from, f), join(to, f))
	execFileSync('montage', [
		...files.map((f) => join(to, f)),
		'-tile', '4x', '-geometry', '640x360+10+10', '-background', theme === 'dark' ? '#05070a' : '#d9d2c5',
		join(root, 'screenshots', `contact-${theme}.png`),
	])
	console.log(`${theme}: ${files.length} slides, screenshots/contact-${theme}.png`)
}