13 lines
327 B
JavaScript
Executable File
13 lines
327 B
JavaScript
Executable File
#!/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)
|