const pptxgen = require('pptxgenjs'); const html2pptx = require('../../../.claude/skills/pptx/scripts/html2pptx.js'); const path = require('path'); async function generatePresentation() { console.log('🍝 GĂ©nĂ©ration Alimentari Piccolo PowerPoint...\n'); const pptx = new pptxgen(); pptx.layout = 'LAYOUT_16x9'; pptx.author = 'Alexis - Xiezuo Course'; pptx.title = 'Alimentari Piccolo - æ„ć€§ćˆ©é€ć§èŻ„ä»·'; pptx.subject = 'é€ćŽ…èŻ„ä»·äœœäžš'; const htmlFile = path.join(__dirname, 'alimentari_piccolo.html'); try { await html2pptx(htmlFile, pptx, { tmpDir: __dirname }); const outputPath = path.join(__dirname, '..', 'Alimentari_Piccolo.pptx'); await pptx.writeFile({ fileName: outputPath }); console.log(`✅ PrĂ©sentation créée avec succĂšs: ${outputPath}`); } catch (error) { console.error('❌ Erreur lors de la gĂ©nĂ©ration:', error.message); if (error.stack) { console.error(error.stack); } process.exit(1); } } generatePresentation();