sdecima / javascript-detect-element-resize

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

Meteor Package support #17

Open gadicc opened 9 years ago

gadicc commented 9 years ago

Hey! To continue the discussion from https://github.com/gadicc/meteor-famous-views/issues/186, I'm back from holidays and have reworked our code to use your library instead of using MutationObservers like we had before (thanks!).

The best way to do this is to have your code available as a Meteor package. Lately there has been a big effort in the community to get offical support from package authors directly rather than having a community member maintain a wrapper package that they need to keep up to date.

As per those guidelines, I'm submitting this PR for your consideration and have already registered "sdecima" as a meteor organization to expedite the process & testing. All you have to do is create an account at https://meteor.com/ (click SIGN IN, then Create account; unfortunately with a different username). After you've done that, please let me know the name of the account, and I'll add you as a maintainer. The package appears on Atmosphere thus: https://atmospherejs.com/sdecima/javascript-detect-element-resize.

Lastly, there is a script, meteor/publish.sh, which you can run the same time as npm publish (other authors have this integrated as part of their grunt-file / Makefile). Alternatively, the community is hard at work on a solution where on every push to github, the Meteor package is automatically built on and published from the cloud.

Sorry for the long explanation and hope this all works for you :)