kopia lustrzana https://github.com/badgen/badgen.net
15 wiersze
358 B
TypeScript
15 wiersze
358 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/.meta/badges.json'), badgeMeta)
|
|
}
|
|
|
|
main()
|
|
|
|
process.on('unhandledRejection', console.error)
|