0.8.0 • Published 10 years ago

hampster v0.8.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

Hampster

npm Dependencies JavaScript Standard Style

Clones, installs, and links interdependent npm packages.

Hampster Hampster Hampster Hampster Hampster

Installation

npm i -g hampster

Configuration

Put your package information in hampster.json:

{
  "packages": [
    {
      "name": "package-name-1",
      "repository": "git@bitbucket.org:you/package-name-1.git"
    },
    {
      "name": "package-name-2",
      "repository": "git@github.com: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.json

Hampster can also download hampster.json for you:

hampster https://example.com/path/to/hampster.json

This command will make Hampster do the following:

  1. For every package defined in hampster.json, check if a directory by that name already exists in the current working directory. If no such directory exists, perform a git clone --recursive on the repository.

  2. For every package, run npm link inside its repository.

  3. For every package, inspect its package.json to build a dependency tree.

  4. 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

Tim De Pauw

License

MIT

0.8.0

10 years ago

0.7.1

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago