mirror of
https://github.com/ikatyang/emoji-cheat-sheet.git
synced 2026-02-06 15:15:20 +01:00
build: update infra (#652)
This commit is contained in:
10
scripts/generate.ts
Normal file
10
scripts/generate.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { getCategorizeGithubEmojiIds } from './fetch.js'
|
||||
import { generateCheatSheet } from './markdown.js'
|
||||
|
||||
export async function generate() {
|
||||
return generateCheatSheet(await getCategorizeGithubEmojiIds())
|
||||
}
|
||||
|
||||
if (process.argv[2] === 'run') {
|
||||
console.log(await generate())
|
||||
}
|
||||
Reference in New Issue
Block a user