mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-01 10:27:06 +03:00
19 lines
572 B
JavaScript
19 lines
572 B
JavaScript
#!/usr/bin/env node
|
|
const EMOJI_DATA = require('emojione/emoji.json');
|
|
const fs = require('fs');
|
|
|
|
const output = Object.keys(EMOJI_DATA).map(
|
|
(key) => {
|
|
const datum = EMOJI_DATA[key];
|
|
return {
|
|
name: datum.name,
|
|
shortname: datum.shortname,
|
|
category: datum.category,
|
|
emoji_order: datum.emoji_order,
|
|
};
|
|
},
|
|
);
|
|
|
|
// Write to a file in src. Changes should be checked into git. This file is copied by
|
|
// babel using --copy-files
|
|
fs.writeFileSync('./src/stripped-emoji.json', JSON.stringify(output));
|