bower / bower

A package manager for the web
bower.io
MIT License
14.97k stars 1.84k forks source link

install from cdn under another name other than index.js #2405

Closed benjaminhon closed 4 years ago

benjaminhon commented 7 years ago

i have my dependencies as

"dependencies": {
    "bootstrap": "^3.3.7",
    "maki": "https://github.com/mapbox/maki.git#^2.1.0",
    "jquery": "^3.1.1",
    "mapbox-gl.js": "https://api.tiles.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.js",
    "mapbox-gl.css": "https://api.tiles.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.css",
    "mapbox-gl-draw.js": "https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v0.16.0/mapbox-gl-draw.js",
    "mapbox-gl-draw.css": "https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v0.16.0/mapbox-gl-draw.css"
  }

at first, i would like something like

mapbox-gl
  /mapbox-gl.js
  /mapbox.gl.css
mapbox-gl-draw
  /mapbox-gl-draw.js
  /mapbox-gl-draw.css

however, after searching i couldnt find a way to do this, and thus, had to resort back to the above. However now my directory structure is like this

mapbox-gl.js
  /index.js
mapbox-gl.css
  /index.css
mapbox-gl-draw.js
  /index.js
mapbox-gl-draw.css
  /index.css

is there a way to accomplish the first structure? but if its not possible how can rename them to something other than index.xx ? Unfortunately the repo i am using is not in the bower repository and only on the cdn.

thanks

sheerun commented 4 years ago

Sorry this won't be supported, please switch to Yarn