git-based package manager
- Search packages directly in github without a registry
- Versions are git tags
- Semantic versioning
Define your package dependencies in the gitDependencies
entry of your
project's package.json
{
"gitDependencies": {
"jrburke/requirejs": "2.1.*",
"jquery/jquery": "^2.1.3",
"jashkenas/underscore": "*"
}
}
Using the same file, git-install packages can take benefit of npm metada
like name
and version
entries
To install your dependencies, use the CLI
git install
Dependencies are downloaded recursively from github and stored in the
git-dependencies/
directory
npm install -g git-install
package.json
{
"devDependencies": {
"git-install": "*"
},
"gitDependencies": {
...
},
"scripts": {
"setup": "npm install && git-install"
}
}
npm run setup