Sometimes Link needs a little help from Zelda.
npm install -g zelda
zeldafrom your node project directory. For example:
zelda 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
of your working directory, it automatically symlinks it for you.
Zelda assumes that all your code lives in the directory one level up from the
folder where you run
zelda. So, keep all your packages in a single folder like
~/code and run
zelda inside one of the projects (ex:
mkdir ~/codecd ~/codegit clone firstname.lastname@example.org:feross/webtorrent.git
git clone email@example.com:feross/bittorrent-protocol.gitgit clone firstname.lastname@example.org:feross/bittorrent-swarm.gitgit clone email@example.com:feross/bittorrent-dht.git
npm installall project dependencies, but
npm linkthe ones that are local.
Gone are the days of running tons of
npm link commands by hand!
npm linkall your modules together
npm installso your freshly cloned projects are ready to go!
MIT. Copyright Feross Aboukhadijeh.