microjs/microjs.com

automatic size and other informations when github repository

Closed this issue · 3 comments

k33g commented

Hi (sorry for my english i'm french)

it would be fine, when repository of a lib is a github repository, to add to data.js the user and the repository name

Then it would be possible to catch some information like :

master id branche (and other branches) : https://github.com/api/v2/json/repos/show/k33g/artemia/branches?callback=foo

and information about file like size or content : https://github.com/api/v2/json/blob/show/k33g/artemia/4775b548257bc49698bf909b7804e0aaf92715c4/js/minified/artemia.min.js?callback=foo

best regards
Philippe

Hi there,

Yeah, this is planned—once there's some spare time I'll get to it.

There's one issue, which is that not all valid JS code works with UglifyJS yet, so we'll probably need a fallback to Google Closure Compiler for the minification.

k33g commented

yes, Google Closure Compiler works fine, i use it for my job.

ded commented

YUIMin at the moment has been safest for us at Twitter — but anything that just does general minify whitespace only should be fine.