htdocs: switch to uglify-js 2.x
This commit is contained in:
parent
9ba25a891a
commit
25b76894f7
|
@ -1 +1 @@
|
||||||
/*! Inspired by: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html */jQuery.fn.listCommits=function(e,t,n){function i(e){var t=e.indexOf("\n");return t>-1?e.slice(0,t):e}this.html("<span>Querying GitHub for recent commits…</span>");var r=this;$.getJSON("https://api.github.com/repos/"+e+"/"+t+"/commits?sha="+n+"&callback=?",function(n){var s=n.data,o=$('<ul class="rssfeeditems"/>');r.empty().append(o),$(s).each(function(n){var r="https://github.com/"+e+"/"+t+"/commit/"+this.sha,s=i(this.commit.message),u=this.author.login;u===""&&(u=this.author.name),o.append('<li><a href="'+r+'">'+s+"</a> <em>by <strong>"+u+"</strong></em></li>");if(n==9)return!1})})};
|
jQuery.fn.listCommits=function(t,i,s){function e(t){var i=t.indexOf("\n");return i>-1?t.slice(0,i):t}this.html("<span>Querying GitHub for recent commits…</span>");var a=this;$.getJSON("https://api.github.com/repos/"+t+"/"+i+"/commits?sha="+s+"&callback=?",function(s){var n=s.data,m=$('<ul class="rssfeeditems"/>');a.empty().append(m),$(n).each(function(s){var a="https://github.com/"+t+"/"+i+"/commit/"+this.sha,n=e(this.commit.message),o=this.author.login;return""===o&&(o=this.author.name),m.append('<li><a href="'+a+'">'+n+"</a> <em>by <strong>"+o+"</strong></em></li>"),9==s?!1:void 0})})};
|
File diff suppressed because one or more lines are too long
|
@ -2,5 +2,5 @@
|
||||||
cleancss -o css/all.min.css css/all.css
|
cleancss -o css/all.min.css css/all.css
|
||||||
cleancss -o css/demo.min.css css/demo.css
|
cleancss -o css/demo.min.css css/demo.css
|
||||||
|
|
||||||
uglifyjs -o js/github.min.js js/github.js
|
uglifyjs js/github.js -o js/github.min.js -c -m
|
||||||
uglifyjs -o js/picnet.table.filter.min.pack.js js/picnet.table.filter.min.js
|
uglifyjs js/picnet.table.filter.min.js -o js/picnet.table.filter.min.pack.js -c -m
|
||||||
|
|
|
@ -3,5 +3,5 @@ pushd %~dp0
|
||||||
|
|
||||||
cmd /c cleancss -o css/all.min.css css/all.css
|
cmd /c cleancss -o css/all.min.css css/all.css
|
||||||
cmd /c cleancss -o css/demo.min.css css/demo.css
|
cmd /c cleancss -o css/demo.min.css css/demo.css
|
||||||
cmd /c uglifyjs -o js/github.min.js js/github.js
|
cmd /c uglifyjs js/github.js -o js/github.min.js -c -m
|
||||||
cmd /c uglifyjs -o js/picnet.table.filter.min.pack.js js/picnet.table.filter.min.js
|
cmd /c uglifyjs js/picnet.table.filter.min.js -o js/picnet.table.filter.min.pack.js -c -m
|
||||||
|
|
Loading…
Reference in New Issue