From: swedebugia <swedebugia@riseup.net>
To: Brett Gilio <brettg@posteo.net>, Mike Gerwitz <mtg@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: NPM importer
Date: Fri, 23 Nov 2018 20:50:36 +0100 [thread overview]
Message-ID: <ed6f3ff2-9fed-37ae-aa4e-b6914300e639@riseup.net> (raw)
In-Reply-To: <62a1a976-ed2f-a68d-0aa8-d6fb6bd46c14@riseup.net>
On 2018-11-22 02:02, swedebugia wrote:
> Hi
>
> On 2018-11-22 00:22, swedebugia wrote:
> snip
>
>> A graph of all npm packages and top packages is also available:
>> https://exploring-data.com/info/npm-packages-dependencies/
This graph is in-degree and does not consider versions. It is useful
only to see the relative popularity of libraries.
It does not reveal the out-degree which is what we are interested in:
recursive dependencies (given x what does it take to build x? build and
test x?)
Also it leaves out any information about licensing. It would be nice
with a graph of which npm packages has which licenses with licenses as
vertices/nodes and packages as edges.
snip
>
> See also the issue I created here:
snip
> And similar here: https://github.com/jashkenas/underscore/issues/2790
Got an answer which is good news for building and bad news for testing:
"devDependencies": {
"coveralls": "^2.11.2", // NOT NEEDED: Posts coverage reports to
converalls.io
"docco": "*", // NOT NEEDED: Builds docs
"eslint": "1.10.x", // Needed for linting (not sure if you think of
linting as part of testing)
"gzip-size-cli": "^1.0.0", // NOT NEEDED
"karma": "^0.13.13", // Needed for testing
"karma-qunit": "~2.0.1", // Needed for testing
"karma-sauce-launcher": "^1.2.0", // Needed for testing
"nyc": "^2.1.3", // Needed for testing
"pretty-bytes-cli": "^1.0.0", // NOT NEEDED
"qunit-cli": "~0.2.0", // Needed for testing
"qunit": "^2.6.0", // Needed for testing
"uglify-js": "3.3.21" // Needing for building
},
In summary direct devdeps: 1 needed for building, 6 needed for testing.
uglify-js is a minifier used in a lot of projects and the only one
needed for this specific project.
For packages like this we could probably patch the package to skip the
minifying step and let the user choose which minifier (if any) to use.
In this particular case the minifier compacts the code from 57KB -> 17.6KB.
The most important thing I think is to be able to start packaging this
mess so cutting an arm and a leg in the beginning (= skip minification
and testing is warranted in my view).
In this case the only thing left to do to package underscore is to:
1) name it: e.g. node-underscore (like debian)
2) decide whether to delete the minified upstream or not in the guix
package.
Hooray!
--
Cheers
Swedebugia
next prev parent reply other threads:[~2018-11-23 19:44 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-11 10:41 NPM importer swedebugia
2018-11-11 15:37 ` Julien Lepiller
2018-11-19 23:29 ` swedebugia
2018-11-20 7:50 ` Julien Lepiller
2018-11-20 19:58 ` swedebugia
2018-11-20 21:12 ` swedebugia
2018-11-20 22:35 ` Julien Lepiller
2018-11-21 15:36 ` swedebugia
2018-11-21 1:41 ` Mike Gerwitz
2018-11-21 22:01 ` Brett Gilio
2018-11-21 23:22 ` swedebugia
2018-11-22 1:02 ` swedebugia
2018-11-22 5:43 ` Brett Gilio
2018-11-22 11:27 ` import libjs-*.deb from Debian? (was Re: NPM importer) Giovanni Biscuolo
2018-11-30 3:23 ` Ricardo Wurmus
2018-11-22 8:36 ` NPM importer Julien Lepiller
2018-11-24 13:47 ` swedebugia
2018-11-23 19:50 ` swedebugia [this message]
2018-11-30 3:17 ` Ricardo Wurmus
2018-11-30 14:17 ` Packaging async and underscore (Was: Re: NPM importer) swedebugia
2018-11-30 16:08 ` Packaging async and underscore Julien Lepiller
2018-11-30 16:44 ` swedebugia
2018-11-24 13:42 ` NPM importer swedebugia
2018-11-30 16:13 ` Improved NPM importer with blacklist (Was: Re: NPM importer) swedebugia
2018-11-30 16:24 ` Improved NPM importer with blacklist Julien Lepiller
2018-11-30 17:20 ` swedebugia
2018-11-30 23:27 ` Improved NPM importer with blacklist (Was: Re: NPM importer) swedebugia
2018-11-11 17:10 ` NPM importer Ludovic Courtès
2018-11-21 16:37 ` Giovanni Biscuolo
2018-11-21 17:15 ` Julien Lepiller
2018-11-22 9:29 ` Giovanni Biscuolo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ed6f3ff2-9fed-37ae-aa4e-b6914300e639@riseup.net \
--to=swedebugia@riseup.net \
--cc=brettg@posteo.net \
--cc=guix-devel@gnu.org \
--cc=mtg@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).