jimrhoskins / ngmodules.org

Angular Modules Website
http://ngmodules.org
81 stars 11 forks source link

recommend including a component.json and publishing to bower #4

Closed dylang closed 10 years ago

dylang commented 11 years ago

component.json has become a standard way to describe client-side javascript components simular to Node's package.json or Ruby Gemfiles.

This leads to developers being able to use tools like bower to manage dependencies and keep client code updated

Example component.json:

{
  "name": "angular-animations",
  "version": "1.0.0",
  "main": ["./path/to/app.css", "./path/to/app.js", "./path/to/sprite.img"],
  "dependencies": {
    "angular": "~1.0.3"
  }
}

And then users can type bower install angular-animations to get the files instead of manually downloading and copies files from github.

lord2800 commented 10 years ago

Bower has instead settled on bower.json for their file name.

dylang commented 10 years ago

I'm closing this as we stopped using bower and instead use npm with browserify.