mikehostetler / amplify

AmplifyJS
http://amplifyjs.com
GNU General Public License v2.0
1.45k stars 143 forks source link

Add in bower.json file #98

Closed jcreamer898 closed 10 years ago

jcreamer898 commented 10 years ago

This will make bower install amplify work and only download the required files.

dcneiner commented 10 years ago

@jcreamer898 This would force someone to only use the full library. Wouldn't we want to at least include the separate components as part of the main key? I have also seen some other bower.json files that include the minified versions as part of their main.

jcreamer898 commented 10 years ago

The main thing doesn't do what you think it does. Everything in lib ends up being available, as well as the docs.

jcreamer898 commented 10 years ago

For example, in jQuery's bower.json...

{
  "name": "jquery",
  "version": "2.1.1pre",
  "main": "dist/jquery.js",
  "license": "MIT",
  "ignore": [
 ...
}

Yet, when you run bower install jquery

dcneiner commented 10 years ago

@jcreamer898 Ah, my mistake! Thanks for clarifying.

jcreamer898 commented 10 years ago

Yup!

jcreamer898 commented 10 years ago

P.S. A new tag will also have to be created so that bower will pull from that tag and not from master.