On Sat, Sep 26, 2020 at 13:54, Felix Natter <[email protected]> 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.



--
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to