1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-12 12:41:46 +03:00

Instead of making this part of the build process, let the devs generate stripped-emoji.json

With the expectation that when the file needs to be regenerated to include other keys, the developer will run this script.
This commit is contained in:
Luke Barnard
2017-06-28 13:28:48 +01:00
parent 22ddbc63c3
commit 30f80b57f2
3 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,8 @@ const output = Object.keys(EMOJI_DATA).map(
category: datum.category,
emoji_order: datum.emoji_order,
};
}
},
);
fs.writeFileSync('./lib/stripped-emoji.json', JSON.stringify(output));
// Write to a file in src. Changes should be checked in to git
fs.writeFileSync('./src/stripped-emoji.json', JSON.stringify(output));