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

Jonas Smedegaard jonas at jones.dk
Sat Sep 26 13:03:17 BST 2020


Quoting Pirate Praveen (2020-09-26 13:12:21)
> On Sat, Sep 26, 2020 at 13:05, Felix Natter <fnatter at gmx.net> wrote:
> > 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

I recommend to try install package uglify-js and see if this works:

  uglifyjs -o twemoji.min.js twemoji.js

If it does, then I recommend to use that instead of terser. Reason is 
that uglify-js has much fewer build-dependencies, and therefore reduces 
the risk of your package getting affected by bugs or migration delays 
elsewhere in the nodejs ecosystem.

Generally you only need terser if your code is written in too modern 
flavor for JavaScript.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20200926/8f71a2ae/attachment.sig>


More information about the Pkg-javascript-devel mailing list