1
0
mirror of https://github.com/ikatyang/emoji-cheat-sheet.git synced 2026-02-05 22:55:18 +01:00

chore(travis): set cron event

This commit is contained in:
ikatyang
2017-07-15 23:55:45 +08:00
parent 0cc7e3cb7c
commit 3f302dbde2
4 changed files with 16 additions and 14 deletions

11
scripts/generate.ts Normal file
View File

@@ -0,0 +1,11 @@
import * as fs from 'fs';
import {create_cheat_sheet} from '../src/create-cheat-sheet';
const output_filename = process.argv[2];
if (output_filename === undefined) {
throw new Error(`Usage ts-node path/to/generate.ts path/to/output.md`);
}
create_cheat_sheet().then(cheat_sheet => {
fs.writeFileSync(output_filename, cheat_sheet, 'utf8');
});