zzarcon / gh-emoji

Github emoji parsing done right :point_up: :pray: :point_up_2: :clap: :ok_hand:
http://zzarcon.github.io/gh-emoji/
MIT License
160 stars 7 forks source link

Add flow support #14

Closed ryyppy closed 8 years ago

ryyppy commented 8 years ago

See commit messages for more info

ryyppy commented 8 years ago

Solves issue #5

zzarcon commented 8 years ago

@oskarcieslik take a look ;)

rpunkfu commented 8 years ago

@zzarcon checking :)

rpunkfu commented 8 years ago

Hi @ryyppy! I checked this PR and my thoughts are:

Thanks @ryyppy :)

ryyppy commented 8 years ago

Cool, thanks for the instant review :-)

So for your points:

Let me know what you think!

zzarcon commented 8 years ago

+1 for the eslint and for adding cp src/gh-emoji.js.flow into the dist npm script.

Should be ready to merge after those changes :muscle:

rpunkfu commented 8 years ago

I think cp src/gh-emoji.js.flow dist is fine! :) How about having two directories bin and dist, where:

This way we can cp src/gh-emoji.js.flow bin and user will not be confused about .flow file in dist

ryyppy commented 8 years ago

By separating js.flow files into another directory, this will force flowtype users to add another [lib] path to their .flowconfig.

So they end up with another installation step (e.g. with following .flowconfig):

[lib]
interfaces/
node_modules/gh-emoji/bin/gh-emoji.js.flow

Do you think this is a huge problem for webdevs to deal with this extra files? Usually you also pack stuff into dist like .js.map or .min.js and they cherry pick stuff either via bower or via node? :-)

rpunkfu commented 8 years ago

Yeah, you're right :)

ryyppy commented 8 years ago

To summarize and make this PR work I need to do following:

rpunkfu commented 8 years ago

Yes, that's right :)

zzarcon commented 8 years ago

@ryyppy looks good for me 👍

rpunkfu commented 8 years ago

same here :)