mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-02 10:08:02 +08:00
feat(core): first attempt to init script standard (#8224)
- lazy load - rate limit per path - init .debug.json support - docs - maintainer - radar
This commit is contained in:
16
scripts/workflow/build-maintainer.js
Normal file
16
scripts/workflow/build-maintainer.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/** */
|
||||
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));
|
||||
Reference in New Issue
Block a user