mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 17:38:19 +08:00
16 lines
418 B
JavaScript
16 lines
418 B
JavaScript
const fs = require('fs');
|
|
const yaml = require('js-yaml');
|
|
const root = require('./root');
|
|
const template = require('./template');
|
|
|
|
const build = async () => {
|
|
const exclude = [
|
|
'partials/training_default.json',
|
|
'partials/problem_default.md',
|
|
'bsod.html',
|
|
];
|
|
fs.writeFileSync(root('.build/template.yaml'), yaml.safeDump(template('templates', exclude)));
|
|
};
|
|
|
|
module.exports = build;
|