You need to specify *all* repositories, including the kan.so one:
exports.repositories = [
'http://kan.so/repository',
'http://hostname/my/repository'
];
The order of repositories in this array is significant, with package
matches from earlier repositories taking precedence over later ones.
You should be able to use a new CouchDB database with no design doc to
publish packages to as a repository if you wish, but I'd recommend
downloading and pushing the repository app from
http://github.com/kanso/repository
Sorry about the Kanso-specific branding and navigation, I'll be
releasing a more generic build soon (and hopefully then I'll get around
to actually documenting this).
The other option is to just check your packages/* files directly into
git. We've been using this method on a few projects and it seems to work
reasonably well.
The ability to install package from git sounds interesting. How would
that look in kanso.json?
Let me know if you have any problems, and if you have time I'm sure
other Kanso developers will be interested in you documenting your setup
on the wiki ;)
- Caolan
It is possible to use multiple repositories, but you have to set them in
your .kansorc file. This can either be set for the current user
(in $HOME/.kansrc), or per-project by adding a .kansorc file in the
project's root directory.
You need to specify *all* repositories, including the kan.so one:
exports.repositories = [
'http://kan.so/repository',
'http://hostname/my/repository'
];
The order of repositories in this array is significant, with package
matches from earlier repositories taking precedence over later ones.
You should be able to use a new CouchDB database with no design doc to
publish packages to as a repository if you wish, but I'd recommend
downloading and pushing the repository app from
http://github.com/kanso/repository
Sorry about the Kanso-specific branding and navigation, I'll be
releasing a more generic build soon (and hopefully then I'll get around
to actually documenting this).
The other option is to just check your packages/* files directly into
git. We've been using this method on a few projects and it seems to work
reasonably well.
The ability to install package from git sounds interesting. How would
that look in kanso.json?
Let me know if you have any problems, and if you have time I'm sure
other Kanso developers will be interested in you documenting your setup
on the wiki ;)
- Caolan
I'd be interested in pull requests to add this :) Failing that please
create an issue so I might have a chance of getting around to it myself.
Caolan
The other option is to just check your packages/* files directly into
git. We've been using this method on a few projects and it seems to work
reasonably well.I had thought about this, but didn't really like the implications, there was a blog post today that sums up some of the issues doing that with npm, and their solution:
> I would think it would look just like npm:
>
> Get the latest version from the configured repos:
> "mypackage": null
>
> Get a specific version from the configured repos:
> "mypackage": "0.0.1"
>
> Get master from a git+ssh repo:
> "mypackage": "git+ssh://git@myhost/mypackage"
>
> Get a tag from a git+https repo:
> "mypackage": "git+https://pfiled@github.com/pfiled/mypackage.git#v0.0.1"
>
> This is documented in npm help install.
I'd be interested in pull requests to add this :) Failing that please
create an issue so I might have a chance of getting around to it myself.