Re: npm and bundled modules
On 12.09.2016 12:20, Jacek Konieczny wrote: On 2016-09-10 23:46, Paweł A. Gajda wrote: npm itself bundle its dependencies,so, what I like to do is just to bundle them into package as well. It just works and would make upgrades much, much easier. Any objections? +1, no objections. Node dependencies and packaging is totally crazy and mantaining it right with RPM (making RPM package for each node package, which may contain a single .js file with a single function) would require 100x bigger team of developers than we have. So, instead of fighting that, lets just package together as much as it is convenient. the exception may be binary packages. would be reasonable to build binary packages as standalone packages. but so far none of npm packages were binary, last time i tried to update npm -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: npm and bundled modules
On 2016-09-10 23:46, Paweł A. Gajda wrote: npm itself bundle its dependencies,so, what I like to do is just to bundle them into package as well. It just works and would make upgrades much, much easier. Any objections? +1, no objections. Node dependencies and packaging is totally crazy and mantaining it right with RPM (making RPM package for each node package, which may contain a single .js file with a single function) would require 100x bigger team of developers than we have. So, instead of fighting that, lets just package together as much as it is convenient. Jacek ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: npm and bundled modules
On 11.09.2016 00:46, Paweł A. Gajda wrote: Our npm is packaged wihtout bundled npm modules, what is generally good and maybe elegant, but it's just hard to maintain as there is over 70 node modules (npm 3.x) it depends on. That is probably the reason, why npm has not been upgraded from 1.x. npm itself bundle its dependencies,so, what I like to do is just to bundle them into package as well. It just works and would make upgrades much, much easier. Any objections? that's the most reasonable thing to do now considering how much efforts it takes to match the npm package versions that actually are able to resolve to single set of packages. i.e foo 1.0 is satisified by all depenendcies, as usually pkg2 requires foo < 1.0 and pkg3 > 1.0 so you need to have two versions of foo package. but, it must be subpackage, not part of nodejs package. %package -n npm as it's highly optional for running nodejs apps. -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: npm and bundled modules
> On 10 Sep 2016, at 17:46, Paweł A. Gajda <m...@pld-linux.org> wrote: > > Our npm is packaged wihtout bundled npm modules, what is generally good and > maybe elegant, but it's just hard to maintain as there is over 70 node > modules (npm 3.x) it depends on. That is probably the reason, why npm has > not been upgraded from 1.x. > > npm itself bundle its dependencies,so, what I like to do is just to bundle > them into package as well. It just works and would make upgrades much, much > easier. Any objections? This is how node apps work in community practice, and doing this would make me very, very happy. It's basically meant that I don't use the system versions of node and npm at all because they actively fight how node works. So not just +1 but +100. (PS. I now work at npm.) Aria ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
npm and bundled modules
Our npm is packaged wihtout bundled npm modules, what is generally good and maybe elegant, but it's just hard to maintain as there is over 70 node modules (npm 3.x) it depends on. That is probably the reason, why npm has not been upgraded from 1.x. npm itself bundle its dependencies,so, what I like to do is just to bundle them into package as well. It just works and would make upgrades much, much easier. Any objections? ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en