sdecima / javascript-detect-element-resize

A Cross-Browser, Event-based, Element Resize Detection
MIT License
879 stars 150 forks source link

Add a bower.json #3

Closed CMCDragonkai closed 9 years ago

CMCDragonkai commented 10 years ago

Would make it easier to include.

ledzep2 commented 10 years ago

+1

tiye commented 10 years ago

I did this.. hope it helps..

bower resigter detect-element-resize <this repo>
batista commented 9 years ago

:+1: I'm using angular-gridster (that uses detect-element-resize as a dependency) on my webapp and it sucks to have to manually insert the reference to your files because bower fails to understand which file to use.

If someone is facing the same issue and getting their grunt builds failing because of this, a quick fix might be to override the main file reference in your bower.json:

{
  "name": "yourawesomeappname",
  "version": "0.0.0",
  // ...
  "dependencies": {
    // ...
  },
  "overrides": {
    "javascript-detect-element-resize": {
      "main": "jquery.resize.js"
    }
  },
  "devDependencies": {
    // ...
  }
  // ...
}
simplesmiler commented 9 years ago

+1

sdecima commented 9 years ago

bower.json is now included, starting with v0.5.2. Thanks all!