On Tue, Feb 12, 2019 at 7:07 PM kai zhu <[email protected]> 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
>
> + [email protected]
> 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
> └─┬ [email protected]
> ├─┬ [email protected]
> │ ├── [email protected]
> │ ├── [email protected]
> │ ├─┬ [email protected]
> │ │ └── [email protected]
> │ ├─┬ [email protected]
> │ │ └── [email protected] deduped
> │ └── [email protected]
> ├── [email protected]
> ├── [email protected]
> ├── UNMET OPTIONAL DEPENDENCY [email protected]
> ├── [email protected]
> ├── [email protected]
> ├─┬ [email protected]
> │ ├── [email protected]
> │ ├── [email protected]
> │ ├── [email protected]
> │ ├─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected]
> │ │ └─┬ [email protected]
> │ │ ├── [email protected]
> │ │ ├── [email protected] deduped
> │ │ ├── [email protected]
> │ │ ├── [email protected] deduped
> │ │ ├── [email protected]
> │ │ ├─┬ [email protected]
> │ │ │ └── [email protected] deduped
> │ │ └── [email protected]
> │ ├── [email protected]
> │ └── [email protected]
> └─┬ [email protected]
> └── [email protected]
>
> $ 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
>
> + [email protected]
> 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
> └─┬ [email protected]
> ├── [email protected]
> ├── [email protected]
> └─┬ [email protected]
> ├── [email protected]
> └── [email protected] deduped
>
> $ du -ms .
> 6 .
>
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss