mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-12-15 14:12:30 +00:00
17 lines
532 B
JavaScript
17 lines
532 B
JavaScript
const fs = require('fs')
|
|
const YAML = require('yaml')
|
|
|
|
const writeHomepage = require('./write-homepage')
|
|
const writePages = require('./write-pages')
|
|
const writeConfig = require('./write-config')
|
|
|
|
const input = fs.readFileSync('../../defaults.yml', 'utf8')
|
|
const defaults = YAML.parse(input)
|
|
|
|
const templatesPath = 'templates'
|
|
const destinationPath = 'dist'
|
|
|
|
writeHomepage(defaults, templatesPath, destinationPath)
|
|
writePages(defaults, templatesPath, `${destinationPath}/docs`)
|
|
|
|
writeConfig(defaults, templatesPath, destinationPath)
|