taptapship / wiredep

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

wiredep override does not work for repository dependencies #212

Closed leolux closed 9 years ago

leolux commented 9 years ago

"wiredep override" as explained in https://github.com/taptapship/wiredep#bower-overrides works well for packages that have a bower.json file with a missing "main" element. But it does not work for packages that have no bower.json in the first place. It seems to be possible to reference git repositories as bower dependencies as follows:

"dependencies": {    
    "smooth-scroll": "https://github.com/cferdinandi/smooth-scroll.git#~7.1.1",
     ...
  },
"overrides": {
    "smooth-scroll": {
      "main": [
        "dist/smooth-scroll.js"
      ]
    }

Using this kind of direct reference works with "bower install" but not with "grunt wiredep". In my case the index.html does not import the file "smooth-scroll.js" altough I expected "grunt wiredep" to look for the overrides.

How to solve this issue?

leolux commented 9 years ago

Solved. I had only missed the subfolder "dist/js"