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

13 lines
327 B
Plaintext
Raw Normal View History

#!/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)