TheMightyFingers / mightyeditor

http://mightyeditor.mightyfingers.com
Other
279 stars 61 forks source link

Publish as npm module? #50

Open thesabbir opened 9 years ago

thesabbir commented 9 years ago

Publishing as a npm module would be great. I can help if you guys are interested.

stauzs commented 9 years ago

hi, if you want to maintain npm module for MightyEditor - it would be really great.

There are fontforge and woff2_compress for the font conversions - I have no idea how npm can handle these.

thesabbir commented 9 years ago

Yes, I am happy to maintain. We can write a pre/post/install script in the module it self to get woff2, fontforge and install. Not sure what to do about windows, download binaries perhaps?

stauzs commented 9 years ago

actually - I have included woff2_compress in the server's binaries folder: https://github.com/TheMightyFingers/mightyeditor/tree/master/server/bin

on the windows I have extracted win binaries and config.tools.fontforge points to that executable: https://github.com/TheMightyFingers/mightyeditor/blob/master/server/config.js

thesabbir commented 9 years ago

So only woff2 binary is included?

stauzs commented 9 years ago

Yes - as fontforge is prett big, you canget fontforge here: https://github.com/fontforge/fontforge

thesabbir commented 9 years ago

I installed it with homebrew on osx. It's also available for ubuntu as well via apt-get. Would it be a good idea host extracted binaries on cloud and then pull it with installation script?

http://brewformulas.org/Fontforge http://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=fontforge&searchon=names

stauzs commented 9 years ago

I wanted to point you to this page: https://github.com/fontforge/fontforge/releases for windows you can download windows installation there.

As I said before - I haven't looked - how npm is handling files and how npm package / script should look like.. It's up to you - how to serve binaries.