4 ms·
1) npm install added 1226 packages in 52.23s 2) $ ls -l node_modules/ | wc -l 900 3) $ du -h node_modules/ 180M node_modules/
by drej 9y ago
1)
npm install
added 1226 packages in 52.23s
2)
$ ls -l node_modules/ | wc -l
900
3)
$ du -h node_modules/
180M node_modules/
4) Few people care what your web app is built with. Your differentiating feature should be how it's used, not how its put together. In this case, it works exactly like the original, just with different internals. I don't see the point.
- drej 9y ago`npm install` pulls 1.6M SLOC. That's a little bit less than V8 itself. $ loc node_modules/ -------------------------------------------------------------------------------- Language Files Lines Blank Comment Code -------------------------------------------------------------------------------- JavaScript 15594 1681330 215398 283955 1181977 Markdown 1831 246795 70260 0 176535 JSON 1602 167050 936 0 166114 HTML 86 37383 2511 18 34854 TypeScript 289 26943 2895 5929 18119 Jsx 19 11072 1190 587 9295 XML 14 6533 466 4 6063 C/C++ Header 21 7103 1126 403 5574 YAML 280 4697 199 166 4332 Makefile 69 3611 733 844 2034 C 4 2219 271 291 1657 CSS 19 1428 84 34 1310 Plain Text 81 1412 285 0 1127 CoffeeScript 16 1260 181 106 973 Python 6 926 179 56 691 ActionScript 4 904 89 227 588 Autoconf 2 778 70 256 452 C++ 7 423 70 36 317 Handlebars 6 262 30 0 232 Bourne Shell 13 213 27 22 164 OCaml 1 156 23 0 133 D 6 69 0 0 69 Batch 2 18 1 0 17 Lisp 2 12 0 0 12 GLSL 2 11 2 0 9 FORTRAN Legacy 1 0 0 0 0 -------------------------------------------------------------------------------- Total 19977 2202608 297026 292934 1612648 --------------------------------------------------------------------------------
- helb 9y agoThat includes devDependencies, too. A bit like counting lines of GCC/Clang/whatever build tool…
- drej 9y agoGiven that this is meant to be boilerplate for building apps, it makes sense to install it with devDependencies. However, let's go along and install it with the `--production` flag. It doesn't get much rosier. Close to 1M SLOC. $ npm install --production added 718 packages in 36.292s $ ls -l node_modules/ | wc -l 518 $ loc node_modules/ -------------------------------------------------------------------------------- Language Files Lines Blank Comment Code -------------------------------------------------------------------------------- JavaScript 11122 1006887 125608 173965 707314 JSON 907 110272 661 0 109611 Markdown 1017 142126 41008 0 101118 TypeScript 279 23007 2381 4870 15756 C/C++ Header 20 6835 1082 319 5434 YAML 178 3140 137 105 2898 XML 2 2192 233 2 1957 Makefile 46 2431 466 612 1353 HTML 18 1280 40 11 1229 CoffeeScript 7 1133 157 86 890 Plain Text 33 505 118 0 387 C++ 7 423 70 36 317 CSS 8 267 26 6 235 Autoconf 1 389 35 128 226 Jsx 8 228 26 14 188 OCaml 1 156 23 0 133 Bourne Shell 5 100 9 12 79 D 6 69 0 0 69 Handlebars 2 50 8 0 42 Lisp 1 6 0 0 6 Batch 1 2 0 0 2 C 1 0 0 0 0 FORTRAN Legacy 1 0 0 0 0 -------------------------------------------------------------------------------- Total 13671 1301498 172088 180166 949244 --------------------------------------------------------------------------------