On Monday, 6 June 2022 13:38:07 CEST, Ionen Wolkens wrote:
On Mon, Jun 06, 2022 at 01:16:54PM +0200, Andrew Ammerlaan wrote:
Hi Chris,

I think @Alessandro (CC) has already done some work on this over at [1]. I'm not sure what the status of it is though. Maybe you two can discuss this together to avoid doing double work.

There's been others too, e.g.
https://git.sr.ht/~dblsaiko/ebuilds/tree/master/item/eclass/npm2x.eclass

Haven't needed npm stuff myself but I was keeping looking at that
one in mind if I ever needed to. Albeit at this point I'd likely
not want the giant manifest+variables required for these without
a vendor tarball.

Best regards,
Andrew

[1] https://github.com/Alessandro-Barbieri/node-overlay

On 05/06/2022 07:47, Chris Pritchard wrote: ...


For what it's worth, I have made similar attempts in my personal overlay,
based on a small helper that exposes a local folder as an NPM cache which
will work as expected for the NPM command line with minimal updates.

The helper is at https://github.com/rbarrois/cjs-ledger
The eclass (could be better) at https://git.xelnor.net/?p=overlay.git;a=blob;f=eclass/xel-nodejs.eclass;hb=HEAD

An example usage can be found here:
https://git.xelnor.net/?p=overlay.git;a=blob;f=www-apps/xelpaste/xelpaste-3.2.1.ebuild;hb=HEAD

If this can be of interest, feel free to ping me!

--
Xelnor

Reply via email to