add stage4 constraint - ease-of-minification

J Decker d3ck0r at gmail.com
Wed Feb 13 15:21:59 UTC 2019


On Tue, Feb 12, 2019 at 7:07 PM kai zhu <kaizhu256 at gmail.com> wrote:

> npm google-closure-compiler handles transpilation and minifiction.
> and it's just 2 deps, itself, and Java.
> https://www.npmjs.com/package/google-closure-compiler
>
>
> hmm, google-closure-compiler actually has 29 dependencies (57mb total)
>

I see.
I just have a copy of  npm\node_modules\google-closure-compiler/compiler.jar
didn't realize it had other deps   "dependencies": {    "chalk": "^1.0.0",
   "vinyl": "^2.0.1",     "vinyl-sourcemaps-apply": "^0.2.0"  },

Which are used for grunt and gulp plugins, which I don't use.



>
>
> $ shNpmPackageDependencyTreeCreate google-closure-compiler
>
> + google-closure-compiler at 20190121.0.0
> added 29 packages from 72 contributors and audited 34 packages in 2.04s
> found 0 vulnerabilities
>
> [MODE_BUILD=npmPackageDependencyTree] - 2019-02-13T02:53:32.614Z - (shRun
> npm ls 2>&1)
>
> /private/tmp/npmPackageDependencyTreeCreate
> └─┬ google-closure-compiler at 20190121.0.0
>   ├─┬ chalk at 1.1.3
>   │ ├── ansi-styles at 2.2.1
>   │ ├── escape-string-regexp at 1.0.5
>   │ ├─┬ has-ansi at 2.0.0
>   │ │ └── ansi-regex at 2.1.1
>   │ ├─┬ strip-ansi at 3.0.1
>   │ │ └── ansi-regex at 2.1.1 deduped
>   │ └── supports-color at 2.0.0
>   ├── google-closure-compiler-java at 20190121.0.0
>   ├── google-closure-compiler-js at 20190121.0.0
>   ├── UNMET OPTIONAL DEPENDENCY google-closure-compiler-linux at 20190121.0.0
>   ├── google-closure-compiler-osx at 20190121.0.0
>   ├── minimist at 1.2.0
>   ├─┬ vinyl at 2.2.0
>   │ ├── clone at 2.1.2
>   │ ├── clone-buffer at 1.0.0
>   │ ├── clone-stats at 1.0.0
>   │ ├─┬ cloneable-readable at 1.1.2
>   │ │ ├── inherits at 2.0.3
>   │ │ ├── process-nextick-args at 2.0.0
>   │ │ └─┬ readable-stream at 2.3.6
>   │ │   ├── core-util-is at 1.0.2
>   │ │   ├── inherits at 2.0.3 deduped
>   │ │   ├── isarray at 1.0.0
>   │ │   ├── process-nextick-args at 2.0.0 deduped
>   │ │   ├── safe-buffer at 5.1.2
>   │ │   ├─┬ string_decoder at 1.1.1
>   │ │   │ └── safe-buffer at 5.1.2 deduped
>   │ │   └── util-deprecate at 1.0.2
>   │ ├── remove-trailing-separator at 1.1.0
>   │ └── replace-ext at 1.0.0
>   └─┬ vinyl-sourcemaps-apply at 0.2.1
>     └── source-map at 0.5.7
>
> $ du -ms .
> 57 .
>
>
>
>
> terser is relatively smaller with 5 dependencies (6mb total).  i might
> look into forking it and merge its dependencies into a standalone-package
>
>
> $ shNpmPackageDependencyTreeCreate terser
>
> + terser at 3.16.1
> added 5 packages from 38 contributors and audited 6 packages in 1.742s
> found 0 vulnerabilities
>
> [MODE_BUILD=npmPackageDependencyTree] - 2019-02-13T02:54:10.589Z - (shRun
> npm ls 2>&1)
>
> /private/tmp/npmPackageDependencyTreeCreate
> └─┬ terser at 3.16.1
>   ├── commander at 2.17.1
>   ├── source-map at 0.6.1
>   └─┬ source-map-support at 0.5.10
>     ├── buffer-from at 1.1.1
>     └── source-map at 0.6.1 deduped
>
> $ du -ms .
> 6 .
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190213/788954ba/attachment-0001.html>


More information about the es-discuss mailing list