Open thesabbir opened 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.
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?
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
So only woff2 binary is included?
Yes - as fontforge is prett big, you canget fontforge here: https://github.com/fontforge/fontforge
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§ion=all&arch=any&keywords=fontforge&searchon=names
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.
Publishing as a npm module would be great. I can help if you guys are interested.