Register Bower Package
kurtmilam opened this issue · comments
Looks like a quick and easy task - would be great to have backbone-couchdb added to bower for use with Yeoman and other tools that work with Bower.
http://twitter.github.com/bower/
Defining a package
You can create a component.json file in your project's root, specifying all of its dependencies. This is similar to Node's package.json, or Ruby's Gemfile, and is useful for locking down a project's dependencies.
{
"name": "backbone-couchdb",
"version": "1.2.2",
"main": "./backbone-couchdb.js",
"dependencies": {
"underscore": "~1.3.1",
"backbone": "~0.9.2"
}
}
Put this under your project's root, listing all of your dependencies. When you run bower install, Bower will read this component.json file, resolve all the relevant dependencies and install them.
Authoring packages
To register a new package, it's as simple as specifying a component.json, pushing the package to a Git endpoint, say GitHub, and running:
bower register backbone-couchdb git://github.com/janmonschke/backbone-couchdb
+1