13 lines
327 B
Plaintext
13 lines
327 B
Plaintext
|
#!/usr/bin/env node
|
||
|
const fs = require('fs')
|
||
|
const path = require('path')
|
||
|
|
||
|
const { render } = require('..')
|
||
|
const resume = require('../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)
|