Files
RSSHub/scripts/workflow/build-maintainer.js
NeverBehave 0792f7ba25 feat(core): first attempt to init script standard (#8224)
- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
2021-09-22 05:41:00 -07:00

17 lines
583 B
JavaScript

/** */
const fs = require('fs');
const path = require('path');
const target = path.join(__dirname, '../../assets/build/maintainer.json');
const maintainer = require(path.join(__dirname, '../../lib/maintainer.js'));
const count = Object.keys(maintainer).length;
const uniqueMaintainer = new Set();
Object.values(maintainer)
.flat()
.forEach((e) => uniqueMaintainer.add(e));
// eslint-disable-next-line no-console
console.log(`We have ${count} routes and maintained by ${uniqueMaintainer.size} contributors!`);
fs.writeFileSync(target, JSON.stringify(maintainer, null, 4));