On Sat, Sep 26, 2020 at 13:05, Felix Natter <[email protected]> wrote:
hello Debian-js,
I have a question regarding [1]: It contains emoji SVGs and a
javascript
module twemoji.js for generating emoji code/images.
After a discussion on #debian-js, I was under the impression that this
was a browser module (libjs-twemoji) only. However, since the central
build module [2] that seems to to build twemoji.js is a node.js
module,
I am rethinking this.
I am packaging the js stuff because it was only requested by the
original RFP #878875 ("Will be needed by php-emoji and in turn
movim-pod."), and Debian-js requested it. php-emoji [3] does not say
anything about a dependency to twemoji (and twemoji is fairly young).
(I need only the SVGs for a java package)
Shall I build libjs-twemoji? If so, how to I build the
"twemoji.min.js"?
Do I take the one that --with nodejs builds for node (sorry, I don't
know much about node)?
You can run uglifyjs.terser command to create twemoji.min.js either in
debian/rules under override_dh_auto_build or create debian/nodejs/build
and add
uglifyjs.terser -o twemoji.min.js twemoji.js
Shall I build node-twemoji?
I recommend the following,
Source package: node-twemoji
Binary package: node-twimoji
Add Provides: libjs-twemoji (=${source:Version}) and remove dependency
on nodejs for node-twemoji binary package.
So could someone please have a look at [1] and tell me what is needed
/
makes sense?
Many Thanks and Best Regards,
Felix
[1] https://github.com/twitter/twemoji
[2] https://github.com/twitter/twemoji/blob/master/scripts/build.js
[3] https://github.com/iamcal/php-emoji
--
Felix Natter
--
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
--
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel