mafintosh / todo

I add my TODOs as issues in this repository.
3 stars 0 forks source link

create static npm dependency index to speed up installs #10

Open mafintosh opened 8 years ago

mafintosh commented 8 years ago
> npm-turbo express

- Updating registry metadata (took 142ms)
- Downloading [========>    ] 4/1324
- Downloaded 1324 modules (took 2s)
- Installation successful (took 42s in total)

express@4.13.3 node_modules/express
├── escape-html@1.0.2
├── merge-descriptors@1.0.0
├── cookie@0.1.3
├── finalhandler@0.4.0
├── content-disposition@0.5.0
├── depd@1.0.1
└── send@0.13.0 (destroy@1.0.3)
mafintosh commented 8 years ago

could install everything using a symlink for near instant time installs:

npm-turbo --crank-it-up-to-11 express 
perguth commented 8 years ago

Something like https://github.com/rstacruz/pnpm?

pnpm maintains a flat storage of all your dependencies in node_modules/.store. They are then symlinked whereever they're needed.