A helper for installing repos without a package.json
with npm.
Install with npm install napa --save-dev
then setup your local package.json
scripts as such:
{
"scripts": {
"install": "napa username/repo"
}
}
Now when you run npm install
it will git clone git://github.com/username/repo node_modules/repo
.
{
"scripts": {
"install": "napa username/repo:adifferentname"
}
}
Now it will install to node_modules/adifferentname
.
{
"scripts": {
"install": "napa git://example.com/user/repo:privatepackage"
}
}
{
"scripts": {
"install": "napa user/repo1:dude user/repo2:rad user/repo3:cool"
}
}
{
"scripts": {
"install": "napa"
},
"napa": {
"foo": "username/repo",
"bar": "[email protected]:user/repo"
}
}
Looking to just download a tagged release/a branch/a specific commit on github or just a zip or tar.gz url?
{
"scripts": {
"install": "napa"
},
"napa": {
"foo": "username/repo#v1.2.3",
"bar": "username/bar#some-branch",
"baz": "username/baz#347286372813400c7a982690acaa516292a8be40",
"qoo": "https://example.com/downloads/release.tar.gz"
}
}
- 0.4.1 - Fix git reporting non-errors on stderr by running in quiet mode.
- 0.4.0 - Add strip: 1 when downloading to avoid untarring within a sub-directory. Thanks @seei!
- 0.3.0 - Ability to download packages using any URL
- 0.2.0 - Ability to set packages using napa key in package.json
- 0.1.1 - --depth 1 for faster cloning
- 0.1.0 - initial release
Copyright (c) 2014 Kyle Robinson Young
Licensed under the MIT license.