volojs / volo

Create front end projects from templates, add dependencies, and automate the resulting projects
https://volojs.github.io/
Other
1.41k stars 100 forks source link

Dependencies of a dependency #182

Closed victorwpbastos closed 10 years ago

victorwpbastos commented 10 years ago

I'm having some problems with dependency versions. In my project I have jQuery in version 1.11 because I have to support IE8, but when I install Backbone Volo install jQuery 2 together. There's some way to tell Volo to not install dependencies of a dependency? Something like volo add -noDeps backbone.

gdborton commented 10 years ago

If you have jquery defined in your package.json as a dependency volo will ignore the one defined for backbone.

{
  "volo": {
    "dependencies": {
      "jquery": "github:jquery/jquery/1.11.0",
      "underscore": "github:jashkenas/underscore/1.5.2",
      "backbone": "github:jashkenas/backbone/1.1.0"
    }
  }
}
victorwpbastos commented 10 years ago

No. My config is like yours and volo always download backbone dependencies :(

gdborton commented 10 years ago

The order matters so you'll need to list jquery before anything that requires it as a dependency.

If you have jquery listed first and it still doesn't work, can you post your config, volo version, and output from running volo install?

To get volo's version - npm list -g | grep volo

victorwpbastos commented 10 years ago

Now I see. I'm used to run volo install -f and because of this I'm having problems. When I just run volo install it works! Thanks!