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:
parent
22ddbc63c3
commit
30f80b57f2
3 changed files with 6 additions and 5 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue