connectivedx / Phoenix

http://connectivedx.github.io/Phoenix/
33 stars 5 forks source link

Automatically flatten windows dependencies? #140

Open kamsar opened 9 years ago

kamsar commented 9 years ago

https://www.npmjs.com/package/flatten-deps purports to flatten the node_modules folder to avoid long filenames.

Though we work around this in our scripts already, it might be nice to test the windows builds with automatically executing flatten-deps and see if they work well. Would mean you could clear deps without resorting to 7-zip file manager or npm-nuke.

elseloop commented 9 years ago

Looks like npm v. 3.0.0 will have this baked in.

Flat, flat, flat!

Your dependencies will now be installed maximally flat. Insofar as is possible, all of your dependencies, and their dependencies, and THEIR dependencies will be installed in your project's node_modules folder with no nesting. You'll only see modules nested underneath one another when two (or more) modules have conflicting dependencies.

It should be the stable release soon (it's in beta now), so we can probably wait on this. Which is plain awesome.

stoff commented 9 years ago

image