-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP emoji parser to new `emoji.js`. * WIP emoji-parsing files. * Added prettier. * Ignored emojione.json. * Fixed parse script. * Added emoji.sh. * Updated emojione. * Added tone0. * Fixed modifier titles. * Removed log. * Removed svgSprites prop, added cdn url fix. * Added fontSize. * Changed script to fix error in emojione.json. * Removed statics. * Added attribution to component. * Added attribution to docs page. * Added attribution to README. * Fixed color. * Docgen. * Added attribution. * Prettiered file.
- Loading branch information
Sjaak Luthart
authored
Jun 23, 2017
1 parent
cf9a230
commit 1b13717
Showing
15 changed files
with
17,135 additions
and
11,149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
dist | ||
*.polyfill.js | ||
emoji.js | ||
node_modules | ||
docs/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ dist | |
debug | ||
/components | ||
.nyc_output | ||
emojione.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
rm ./emojione.json | ||
ls ./src/emoji-menu/emoji.js | ||
curl https://raw.githubusercontent.com/emojione/emojione/master/emoji.json > emojione.json | ||
node parse-emoji.js > src/emoji-menu/emoji.js | ||
node_modules/.bin/prettier src/emoji-menu/emoji.js --write --single-quote | ||
echo Downloaded and parsed emojione.json! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const emojione = require('./emojione.json'); | ||
const map = require('lodash/map'); | ||
|
||
console.log('export default ['); // eslint-disable-line no-console | ||
|
||
map(emojione, (e) => { | ||
console.log( // eslint-disable-line no-console | ||
`{ | ||
title: '${e.shortname.replace(/:levitate:/g, ':man_in_business_suit_levitating:')}${e.diversities.length > 0 && !e.diversity ? ' tone0' : ''}', | ||
name: '${e.name}', | ||
shortname: '${e.shortname.replace(/:levitate:/g, ':man_in_business_suit_levitating:')}', | ||
category: '${e.category}', | ||
diversity: ${Boolean(e.diversities.length > 0 || e.diversity)} | ||
},` | ||
); | ||
}); | ||
|
||
console.log('];'); // eslint-disable-line no-console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.