Support Kanso Package installation
The repo http://kan.so/packages has a lot of good stuff that one can use in any couchapp.
For now, we would want to have the following command in erica
erica install couch-tokens
Which would do the following:
- download the package from the urtl http://kan.so/packages/_db/couch-tokens/couch-tokens-0.0.1.tar.gz
- extract the packages into a temp dir
- copy the extracted contents into the 'ddoc' directory
- ignore kanso.json and readme files.
The above would not provide complete kanso integration, but would be what most people would need.
One other feature would be to look at the dependencies in kanso.json and get those. I guess we would need semver'd version as well. This would be a nice to have. A person could easily do this as we are not storing the info once we unpack it. eg:
erica install underscore
erica install something-that-needs-underscore
again, only looking for the simplest solution, not full blown integration.
I +1 for such feature. Though we need generalize the concept to the erica apps by themselves. In the couchapp py version there is the concept of vendor which allows you to install an app using git, hg or a couchdb repo. It is using a metadata.json file just like kanso js . Maybe less powerful but a lot older.
ex:
https://github.com/janmonschke/backbone-couchdb
(note that you can now install it as an erica template but this is a different purpose. Just talking about the metadata.json file).
So I guess we could generalize the system to install either kanso apps or couchapps. Even webapp (.webapp) . I think working this way would ease a lot the erica.
- benoit
bump.