taptapship / wiredep

Wire Bower dependencies to your source code.
MIT License
1.15k stars 142 forks source link

do overrides do more than just main? #178

Closed dtracers closed 9 years ago

dtracers commented 9 years ago

example:

overrides: {
    'jquery': {
        'dependencies': {
            'projectIwantJqueryToDependOn' : 'version'
        }
    }
}
stephenplusplus commented 9 years ago

What effect would you hope it to have? If you were to do that, wiredep would try to get information about bower_components/projectIwantJqueryToDependOn to find if it has a main file to inject as well as to determine the sorting order.

hzpz commented 9 years ago

You can use this to override unwanted dependencies. For example I used the following snippet

"overrides": {
  "angularjs-color-picker": {
    "main": "angularjs-color-picker.js",
    "dependencies": {
      "tinycolor": "~1.1.0",
      "angular": "~1.3.0",
      "bootstrap": "~3.3.0"
    }
  }
}

to override the original dependency to angularjs.

CWSpear commented 9 years ago

@hzpz is spot on.