2020-07-05 18:21:09 +02:00
|
|
|
#!/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')
|
2020-07-05 18:21:09 +02:00
|
|
|
|
|
|
|
const dest = path.resolve(__dirname, '../public');
|
|
|
|
const html = render(resume)
|
|
|
|
|
|
|
|
fs.mkdirSync(dest, { recursive: true })
|
|
|
|
fs.writeFileSync(path.resolve(dest, 'index.html'), html)
|