1 |
Il Lun 6 Giu 2022, 13:16 Andrew Ammerlaan <andrewammerlaan@g.o> ha |
2 |
scritto: |
3 |
|
4 |
> Hi Chris, |
5 |
> |
6 |
> I think @Alessandro (CC) has already done some work on this over at [1]. |
7 |
> I'm not sure what the status of it is though. Maybe you two can discuss |
8 |
> this together to avoid doing double work. |
9 |
> |
10 |
> Best regards, |
11 |
> Andrew |
12 |
> |
13 |
> [1] https://github.com/Alessandro-Barbieri/node-overlay |
14 |
> |
15 |
> On 05/06/2022 07:47, Chris Pritchard wrote: |
16 |
> > Hello, |
17 |
> > |
18 |
> > Would there be any interest in a yarn / NPM eclass that supports offline |
19 |
> > installs. For a personal overlay I’ve got a working yarn.eclass |
20 |
> > ( |
21 |
> https://github.com/chriscpritchard/overseerr-overlay/blob/main/eclass/yarn.eclass |
22 |
> > < |
23 |
> https://github.com/chriscpritchard/overseerr-overlay/blob/main/eclass/yarn.eclass>) |
24 |
> |
25 |
> > and I’ve been able to make a version that supports npm from |
26 |
> > NPM-Shrinkwrap or npm-lock.json files (this is still being tested). |
27 |
> > |
28 |
> > If there is an interest, would anyone be willing to support me in having |
29 |
> > an eclass added to the tree? |
30 |
> > |
31 |
> > Thanks, |
32 |
> > |
33 |
> > Chris |
34 |
> > |
35 |
|
36 |
|
37 |
I'm interested in an eclass that doesn't bundle everything together. Also |
38 |
I'm interested in anyone that can share the package maintainership (in guru |
39 |
first). |
40 |
|
41 |
I've already tried 3 approaches: |
42 |
1) one package per dependency. The npm eclass is working fine for now, you |
43 |
can unbundle packages that depend on system libs (like sqlite), the major |
44 |
issue I've found is in the circular dependencies of the rollup package. |
45 |
|
46 |
2) bundle everything. This approach doesn't always work. Some packages fail |
47 |
to build dependencies written in C and you can't unbundle them. |
48 |
|
49 |
3) package every runtime dependency and bundle build time dependencies. |
50 |
Since rollup is a build time dep, I've tried to bundle every build time dep |
51 |
but this require to create a custom stuff and host it somewhere. |