kopia lustrzana https://github.com/badgen/badgen.net
15 wiersze
357 B
TypeScript
15 wiersze
357 B
TypeScript
import path from 'path'
|
|
import fse from 'fs-extra'
|
|
import { loadBadgeMeta } from '../libs/badge-list'
|
|
|
|
const rel = (...args) => path.resolve(__dirname, ...args)
|
|
|
|
async function main () {
|
|
const badgeMeta = await loadBadgeMeta()
|
|
await fse.outputJson(rel('../static/.gen/badges.json'), badgeMeta)
|
|
}
|
|
|
|
main()
|
|
|
|
process.on('unhandledRejection', console.error)
|