json-theme-even-fork/bin/build-demo

13 lines
345 B
Plaintext
Raw Normal View History

#!/usr/bin/env node
const fs = require('fs')
const path = require('path')
const { render } = require('..')
2020-08-29 22:40:18 +02:00
const resume = require('resume-schema/sample.resume.json')
const dest = path.resolve(__dirname, '../public');
const html = render(resume)
fs.mkdirSync(dest, { recursive: true })
fs.writeFileSync(path.resolve(dest, 'index.html'), html)