1 |
On Monday, 6 June 2022 13:38:07 CEST, Ionen Wolkens wrote: |
2 |
> On Mon, Jun 06, 2022 at 01:16:54PM +0200, Andrew Ammerlaan wrote: |
3 |
>> Hi Chris, |
4 |
>> |
5 |
>> I think @Alessandro (CC) has already done some work on this over at [1]. |
6 |
>> I'm not sure what the status of it is though. Maybe you two can discuss |
7 |
>> this together to avoid doing double work. |
8 |
> |
9 |
> There's been others too, e.g. |
10 |
> https://git.sr.ht/~dblsaiko/ebuilds/tree/master/item/eclass/npm2x.eclass |
11 |
> |
12 |
> Haven't needed npm stuff myself but I was keeping looking at that |
13 |
> one in mind if I ever needed to. Albeit at this point I'd likely |
14 |
> not want the giant manifest+variables required for these without |
15 |
> a vendor tarball. |
16 |
> |
17 |
>> Best regards, |
18 |
>> Andrew |
19 |
>> |
20 |
>> [1] https://github.com/Alessandro-Barbieri/node-overlay |
21 |
>> |
22 |
>> On 05/06/2022 07:47, Chris Pritchard wrote: ... |
23 |
> |
24 |
|
25 |
For what it's worth, I have made similar attempts in my personal overlay, |
26 |
based on a small helper that exposes a local folder as an NPM cache which |
27 |
will work as expected for the NPM command line with minimal updates. |
28 |
|
29 |
The helper is at https://github.com/rbarrois/cjs-ledger |
30 |
The eclass (could be better) at |
31 |
https://git.xelnor.net/?p=overlay.git;a=blob;f=eclass/xel-nodejs.eclass;hb=HEAD |
32 |
|
33 |
An example usage can be found here: |
34 |
https://git.xelnor.net/?p=overlay.git;a=blob;f=www-apps/xelpaste/xelpaste-3.2.1.ebuild;hb=HEAD |
35 |
|
36 |
If this can be of interest, feel free to ping me! |
37 |
|
38 |
-- |
39 |
Xelnor |