Skip to content
forked from feross/zelda

Complete rewrite - Automatically `npm link` all your local packages together!

Notifications You must be signed in to change notification settings

fatlard1993/zelda

 
 

Repository files navigation

Zelda

zelda

Sometimes Link needs a little help from Zelda.

Features

  • Automatically npm link all your local packages together
  • Recursively run bun install on all local packages

Usage

  1. Install it globally.

bun install -g fatlard1993/zelda

  1. Run zelda from your node project directory. For example:

~/Projects/my-awesome-project$ zelda

Options

[zelda] Version: 2.4.0

Usage:

zelda [[--help|-h|-?] | [--version] | [--verbosity|-v <number>] | [--cleanInstall|-c] | [--preclean|-C] | [--simulate|-s] | [--target|-t <string>] | [--autoFolders|-a] | [--autoFoldersDepth|-d <number>] | [--projectRoot|-p <string>] | [--folder|-f <string>] | [--recursive|-r]]


Flags:

--help, -h, -?
	[boolean]

--version
	[boolean]

--verbosity, -v
	[number :: 1]

--cleanInstall, -c
	[boolean]
	Clean old node_modules before installing

--preclean, -C
	[boolean]
	Clean old symlinks first

--simulate, -s
	[boolean]
	See what would happen, without making changes

--target, -t
	[string]
	<folder> The target package folder(s) (defaults to process.cwd())

--autoFolders, -a
	[boolean :: true]
	Automatically find projectRoot and detect folders to source packages

--autoFoldersDepth, -d
	[number :: 2]
	<levels> The number of levels to traverse for finding source folders containing local packages

--projectRoot, -p
	[string]
	<folder> The top level folder containing all your code (defaults to targetPackage/..)

--folder, -f
	[string]
	<folder> Additional folder(s) to source packages

--recursive, -r
	[boolean]
	Recursively walk through and link all local git projects in the current source folders

Example

  1. Clone a cool project
mkdir -p ~/Projects
cd ~/Projects
git clone https://github.com/feross/webtorrent.git
  1. Clone the project dependencies you plan to work on
git clone https://github.com/feross/bittorrent-protocol.git
git clone https://github.com/feross/bittorrent-swarm.git
git clone https://github.com/feross/bittorrent-dht.git
  1. Recursively npm install all project dependencies, npm link any local ones
cd ~/Projects/webtorrent
zelda -a

Link is better with Zelda

Gone are the days of running tons of npm link commands by hand!

link with zelda

About

Complete rewrite - Automatically `npm link` all your local packages together!

Topics

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%