[Pkg-javascript-devel] twemoji: Only node.js library?

Felix Natter fnatter at gmx.net
Sat Sep 26 12:54:56 BST 2020


Pirate Praveen <praveen at onenetbeyond.org> writes:

> On Sat, Sep 26, 2020 at 13:05, Felix Natter <fnatter at gmx.net> 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)

hello Pirate,

>> 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

How do I build twemoji.js in the first place? Using dh --with nodejs?
Will it run without node.js dependencies?

As expected, this:

override_dh_auto_build:
	uglifyjs.terser -o twemoji.min.js twemoji.js

fails because twemoji.js has not been built. If it's supposed to be
built by --with nodejs, can you recommend a similar package?

Many Thanks and Best Regards,
Felix
--
Felix Natter




More information about the Pkg-javascript-devel mailing list