uber-archive / lint-trap

JavaScript linter module for Uber projects
26 stars 2 forks source link

bundleDependencies #91

Open Raynos opened 9 years ago

Raynos commented 9 years ago

The lint-trap module is huge and comes with a bunch of dependencies.

lint-trap@1.0.0 node_modules/lint-trap
├── process@0.10.0
├── partial@0.0.3
├── commondir@0.0.1
├── jsonfile@2.0.0
├── pluralize@1.1.2
├── find-parent-dir@0.3.0
├── deep-extend@0.3.2
├── extend@2.0.0
├── xtend@4.0.0
├── text-table@0.2.0
├── minimist@1.1.0
├── async@0.9.0
├── debug@2.1.1 (ms@0.6.2)
├── npm-which@2.0.0 (which@1.0.8, npm-path@1.0.1, commander@2.6.0)
├── chalk@0.5.1 (escape-string-regexp@1.0.2, ansi-styles@1.1.0, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)
├── through2@0.6.3 (readable-stream@1.0.33)
├── event-stream@3.2.2 (stream-combiner@0.0.4, duplexer@0.1.1, from@0.1.3, pause-stream@0.0.11, map-stream@0.1.0, split@0.3.3, through@2.3.6)
├── through2-spy@1.2.0 (xtend@3.0.0, through2@0.5.1)
├── dotty@0.0.2
├── fstream-ignore@1.0.2 (inherits@2.0.1, fstream@1.0.4, minimatch@2.0.1)
├── editorconfig@0.12.1 (lru-cache@2.0.4, sigmund@1.0.0, commander@1.1.1, bluebird@2.9.6)
├── jsonstream2@1.1.0 (type-component@0.0.1, jsonparse@0.0.6)
├── jshint@2.5.11 (strip-json-comments@1.0.2, underscore@1.6.0, console-browserify@1.1.0, exit@0.1.2, minimatch@1.0.0, shelljs@0.3.0, cli@0.6.5, htmlparser2@3.8.2)
├── eslint@0.11.0 (object-assign@1.0.0, strip-json-comments@1.0.2, user-home@1.1.1, xml-escape@1.0.0, globals@4.0.0, estraverse@1.5.1, escope@1.0.1, mkdirp@0.5.0, espree@1.7.1, minimatch@1.0.0, optionator@0.4.0, concat-stream@1.4.7, doctrine@0.6.2, js-yaml@3.2.5)
└── jscs@1.9.0 (supports-color@1.2.0, strip-json-comments@1.0.2, commander@2.5.1, estraverse@1.8.0, regenerate@1.0.1, vow@0.4.8, colors@1.0.3, exit@0.1.2, minimatch@1.0.0, vow-fs@0.3.4, glob@4.0.6, esprima-harmony-jscs@1.1.0-dev-harmony, esprima@1.2.4, xmlbuilder@2.4.6, unicode-6.3.0@0.1.5)

We should consider bundling them into the tarball.

That way when you install lint-trap you just see

lint-trap@1.0.0 node_modules/lint-trap

And all of its more then 100 dependencies will be hidden from the application developer or the library developers.