JoshBarr / on-media-query

A neat way to trigger JS when media queries change. No jQuery required.
283 stars 33 forks source link

Change repo name to on-media-query #12

Closed JoshBarr closed 11 years ago

JoshBarr commented 12 years ago

Any objections? :)

patocallaghan commented 12 years ago

Go for it..no objections here...

patocallaghan commented 12 years ago

I just noticed that Github doesn't perform redirects when you rename the repo so now everything that was linking to js-media-queries is 404ing ....Seems a shame to lose all that link juice you have going on.

Maybe setup something like this? Create a new on-media-query repo and have a redirect message on js-media-queries....The problem I see with this approach though is that you'll lose commit history, forks, followers on the new repo..

JoshBarr commented 12 years ago

That's annoying! I moved it back.

Josh

On 25/10/2012, at 9:29 PM, patocallaghan notifications@github.com wrote:

I just noticed that Github doesn't perform redirects when you rename the repo so now everything that was linking to js-media-queries is 404ing ....Seems a shame to lose all that link juice you have going on.

Maybe setup something like this? Create a new on-media-query repo and have a redirect message on js-media-queries....The problem I see with this approach though is that you'll lose commit history, forks, followers on the new repo..

— Reply to this email directly or view it on GitHub.

mhulse commented 12 years ago

Similar to what Pat says, check out this.

They have a message in the sidebar that says to "check a different repo".

Personally, I think it's a cool idea to change the name...

TBH, that's why I changed the object name to oMQ, because I thought it fit the name of the project better (onMediaQuery).

Part of me wonders, if you do decide to change the name, would it be wise to just create a GitHub account specifically for this project? The username could be something like on-media-query? Similar to https://github.com/jquery? Overkill? Alternatively, maybe setup a GitHub organization? Overkill as well?

Speaking of, I published my develop branch to my master branch... The latest demo is here (you might need to do a shift + refresh to dump cache if you've been there before.).

Slight change of topics...

If you don't mind, take a look at my fork and my change log...

First, I think my fork solves Issue #7, Issue #8 and Issue #9.

Second, I've worked pretty hard to (IMHO) improve the repo...

From little things like an authors and contributors files to defining/caching lengths of objects/arrays before looping (e.g. for (var i = 0, l = this._callbacks.length; i < l; i++) { ... } and adding functionality for wider browser acceptance (last time I checked, and maybe things have changed in the last couple months, but Opera and font-family dont mix, at least from what my tests showed).

In terms of specifics (some of this is covered in CHANGELOG.md):

people can minify using that online YUI Compressor-based tool (included in the readme), or as part of their build process. (via necolas)

  • ...I think the latest trend is for folks to use someting like Grunt and the build process will take into account the minification. Not to mention, it saves time not having to worry about adding a min version for every new version of the JS. :)

So, with that said (sorry it's so long winded):

  1. Josh/Pat, any objections to pulling my code into your branch? I won't be offended if anyone takes any issues with my changes. :)
  2. Would you be interested, and/or, is it a good idea to start a new account with the new name on-media-query (like jQuery does)? Overkill? I'd still be game for a new repo name under the JoshBarr account. Maybe a GitHub organization might do the trick? Is that overkill? Just spitballing some ideas here. Really, I woud not mind researching the best option here... There has to be a good workflow for this type of team repo/project (Organization has worked out great for my work, but maybe that's overkill for this.)
  3. Not sure how helpful you guys would find this info, but I've documented some of my workflow here; I use GitHub for Mac (windows here)... It makes things so easy (I don't mind using command line, but the app rocks).

Thoughts?

Ok, back to work...

Thanks! Micky

patocallaghan commented 12 years ago

Re: the repo name change, what about doing the reverse of what I suggested earlier? If you really wanted to change the name, rename this repo to on-media-query as before, this means you retain forks, commit history and followers etc....js-media-queries will then 404 but to fix that create a new repo called js-media-queries and just have a README.md which points to the new on-media-query repo..you then retain all your history etc and the 404 issue is somewhat solved....

Re: the rest, some nice changes in there especially the font-family/:before stuff but this is Josh's baby so the buck stops with him....

mhulse commented 12 years ago

Re: the repo name change, what about doing the reverse of what I suggested earlier? If you really wanted to change the name, rename this repo to on-media-query as before, this means you retain forks, commit history and followers etc....js-media-queries will then 404 but to fix that create a new repo called js-media-queries and just have a README.md which points to the new on-media-query repo..you then retain all your history etc and the 404 issue is somewhat solved....

I like that idea. :+1:

Re: the rest, some nice changes in there especially the font-family/:before stuff but this is Josh's baby so the buck stops with him....

Totally agree... I won't be offended if the answer is "no". Or, if you have any requests to change things so it's more acceptable, I'm open minded to that as well. :)

mhulse commented 11 years ago

Re-focusing issue: #17