hampster
v0.8.0
Published
Clones, installs, and links interdependent npm packages.
Downloads
10
Readme
Hampster
Clones, installs, and links interdependent npm packages.

Installation
npm i -g hampsterConfiguration
Put your package information in hampster.json:
{
"packages": [
{
"name": "package-name-1",
"repository": "[email protected]:you/package-name-1.git"
},
{
"name": "package-name-2",
"repository": "[email protected]:you/package-name-2.git"
}
]
}You can also use YAML format, with .yml or .yaml as the extension.
Usage
In the root directory where you want your packages to live, run:
hampster /path/to/hampster.jsonHampster can also download hampster.json for you:
hampster https://example.com/path/to/hampster.jsonThis command will make Hampster do the following:
For every package defined in
hampster.json, check if a directory by thatnamealready exists in the current working directory. If no such directory exists, perform agit clone --recursiveon therepository.For every package, run
npm linkinside its repository.For every package, inspect its
package.jsonto build a dependency tree.Walk the dependency tree and run
npm link <dependencies>where possible.
Options
--pull
Perform a git pull --recurse-submodules for previously cloned repositories.
The remote and branch are never specified, so Git will decide.
--rebase
Like --pull, but using git pull --rebase.
--no-recursive
Perform git clone without the --recursive flag and git pull without the
--recurse-submodules flag.
--version
Display Hampster's version number.
Author
License
MIT
