You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/build/buildTemplate.js

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;