Skip to content

Commit

Permalink
fix generating icons scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Bourgeois committed Oct 2, 2024
1 parent 93df347 commit 1032696
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ android/keystores/debug.keystore

# generated by bob
lib/

# generated emoji.json
src/assets/emojis.json
20 changes: 8 additions & 12 deletions scripts/generateIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,15 @@ for (const [key, value] of Object.entries(json)) {
keywords: emojisWithKeywords[emoji.emoji],
}
})
newArray.push(
...[
{
title: key.replace(/ & /g, '_').replace(/ /g, '_').toLocaleLowerCase(),
data: newData,
},
{
title: 'custom',
data: [],
},
],
)
newArray.push({
title: key.replace(/ & /g, '_').replace(/ /g, '_').toLocaleLowerCase(),
data: newData,
})
}
newArray.push({
title: 'custom',
data: [],
})

fs.writeFile('./src/assets/emojis.json', JSON.stringify(newArray), function (err) {
if (err) return console.log(err)
Expand Down
1 change: 0 additions & 1 deletion src/assets/emojis.json

This file was deleted.

0 comments on commit 1032696

Please sign in to comment.