BoilerplateMVC / Backbone-Require-Boilerplate

A Rad Backbone.js and Require.js Boilerplate Project.
MIT License
604 stars 129 forks source link

Add "provides" to fulfill backbone dependencies for bower package manager #45

Open HongPong opened 10 years ago

HongPong commented 10 years ago

It would help when I try to include bootstrap-dependent packages via bower if "provides" included Bootstrap so that the package manager doesn't try to generate a vanilla bootstrap to satisfy dependencies.

I ran into the problem trying to install https://github.com/msurguy/ladda-bootstrap/blob/master/bower.json

Similar to this:

// lodash.js — component.json
{
  "name": "lodash",
  "version": "1.0.x",
  "main": "lodash.js",
  "provides": {
    "underscore": "1.4.x"
  }
}

Re: https://github.com/bower/bower/issues/291 I'm pretty new to using Bower and Bootstrap but I think this would help. Thanks, the framework is great.

gfranko commented 10 years ago

So, we are not currently using bower to pull in any client-side dependencies. Are you proposing that we should?

HongPong commented 10 years ago

I think what I should have said: when I use bower to add a backbone related library, bower doesn't see BoilerplateMVC as providing Backbone within it, so it tries to download backbone all over again. ( thinking adding http://jqueryvalidation.org/ for example via bower this problem would occur )