import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const catalogPath = path.join(__dirname, '../lib/emoji-catalog.ts');
const src = fs.readFileSync(catalogPath, 'utf8');
const ids = [...src.matchAll(/id: '(e-[^']+)'/g)].map((match) => match[1]);
function face(id, mouth, extra = '') {
return `${mouth}${extra}`;
}
function heart(id, color) {
return ``;
}
function circle(id, color, label) {
return `${label}`;
}
const mouthSmile =
'';
const mouthLaugh = '';
const mouthSad =
'';
const mouthOpen = '';
const mouthLine = '';
const parts = ['');
const out = path.join(__dirname, '../public/emojis/lendry-emojis.svg');
fs.mkdirSync(path.dirname(out), { recursive: true });
fs.writeFileSync(out, parts.join(''));
console.log(`Generated ${ids.length} emoji symbols`);