Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Bower Package #54

Open
kurtmilam opened this issue Sep 14, 2012 · 2 comments
Open

Register Bower Package #54

kurtmilam opened this issue Sep 14, 2012 · 2 comments

Comments

@kurtmilam
Copy link
Contributor

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

@elmerbulthuis
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@elmerbulthuis @kurtmilam and others