badgen.net/tools/gen-examples.ts

15 wiersze
358 B
TypeScript
Czysty Zwykły widok Historia

import path from 'path'
import fse from 'fs-extra'
2019-06-01 06:37:20 +00:00
import { loadBadgeMeta } from '../libs/badge-list'
const rel = (...args) => path.resolve(__dirname, ...args)
async function main () {
2019-06-01 06:37:20 +00:00
const badgeMeta = await loadBadgeMeta()
2019-07-05 09:29:07 +00:00
await fse.outputJson(rel('../static/.meta/badges.json'), badgeMeta)
}
main()
process.on('unhandledRejection', console.error)