From a537c56e469abde9ba6b60a23b4d8ec8f7436794 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 28 Jan 2013 05:35:40 -0500 Subject: [PATCH] refactored --- cloudcmd.js | 5 ++- html/auth/github.html | 4 ++- json/config.json | 8 +++-- lib/client.js | 25 +++++++-------- lib/client/storage/_github.js | 58 ++++++++++++----------------------- lib/server.js | 4 +-- lib/server/auth.js | 15 ++++----- lib/server/ischanged.js | 2 +- lib/server/main.js | 4 ++- 9 files changed, 57 insertions(+), 68 deletions(-) diff --git a/cloudcmd.js b/cloudcmd.js index 3434530f..2d1d555d 100644 --- a/cloudcmd.js +++ b/cloudcmd.js @@ -104,9 +104,8 @@ merge : true }; - if (pAllowed.js) { + if (pAllowed.js) lOptimizeParams.push(LIBDIR + 'client.js'); - } if (pAllowed.html) lOptimizeParams.push(lIndex); @@ -121,7 +120,7 @@ } if (lOptimizeParams.length) - lMinify.optimize(lOptimizeParams); + lMinify.optimize(lOptimizeParams,{cache:true}); } /** diff --git a/html/auth/github.html b/html/auth/github.html index 1aa4ed8f..7ba927d0 100644 --- a/html/auth/github.html +++ b/html/auth/github.html @@ -5,11 +5,13 @@