Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use URL file name instead of index.js with Bower

Using Bower, I can download an external URL resource and install it:

# bower install ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.js --save

But this now maps too an index.js file:

"jquery": {
  "source": {
    "main": "vendor/jquery/index.js",
  }
}

I want the name of the file to be the the same as in the URL if bower metadata is not available:

"jquery": {
  "source": {
    "main": "vendor/jquery/jquery.js",
  }
}

Possible?

like image 943
Dan Kanze Avatar asked May 16 '13 00:05

Dan Kanze


1 Answers

Sounds like a bug. Can you open a ticket?

like image 162
Sindre Sorhus Avatar answered Sep 19 '22 01:09

Sindre Sorhus