Sometimes Link needs a little help from Zelda.
- Install it globally.
npm install -g zelda- Run
zeldafrom your node project directory. Pass it a single argument -- the directory where all your code lives.
zelda ~/codezelda finds all the node packages in your code folder (~/code/ in the example). If any of these packages are listed as a dependency in the nearest package.json of your working directory, it automatically symlinks it for you.
- Clone a cool project.
cd ~/code
git clone git@github.com:feross/webtorrent.git- Clone the project dependencies you plan to work on.
git clone git@github.com:feross/bittorrent-protocol.git
git clone git@github.com:feross/bittorrent-swarm.git
git clone git@github.com:feross/bittorrent-dht.git- Recursively
npm installall project dependencies, butnpm linkthe ones that are local.
cd webtorrent
zelda ~/codeGone are the days of running tons of npm link commands by hand!
- Automatically
npm linkall your modules together - Supports
dependencies,devDependencies, andoptionalDependencies - Recursively runs
npm installso your freshly cloned projects are ready to go!
MIT. Copyright Feross Aboukhadijeh.

