ramirez/src/data/generateCfgJsdoc.js

9 lines
292 B
JavaScript
Raw Normal View History

const path = require('path');
const fs = require('fs');
const toJsdoc = require('json-schema-to-jsdoc');
const schema = require('./cfg.schema.json');
const target = path.join(__dirname, 'cfg.jsdoc.js');
const result = toJsdoc(schema);
fs.writeFileSync(target, result, { encoding: 'utf8' });