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

Pirate Praveen praveen at onenetbeyond.org
Sat Sep 26 13:00:39 BST 2020



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

pkg-js-tools (--with nodejs) tries to automate some build tools, it 
cannot handle every node module. So you have to find the build command 
from package.json#scripts#build and run this in an override like above 
or add in debian/nodejs/build (which keeps rules file cleaner).

https://github.com/twitter/twemoji/blob/master/package.json#L36

https://wiki.debian.org/Javascript/Nodejs/#Using_build_tools_like_grunt 
has this documented for some common tools.





More information about the Pkg-javascript-devel mailing list