From d0092858e55ac775a2678342d82f9beeed7a54a1 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 11 Dec 2012 06:36:38 -0500 Subject: [PATCH] minor changes --- config.json | 4 ++-- lib/client/editor/_codemirror.js | 2 +- lib/client/storage/_github.js | 24 ++++++++++++------------ test/test.sh | 6 +++--- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/config.json b/config.json index 7f9801a6..a399d97c 100644 --- a/config.json +++ b/config.json @@ -4,8 +4,8 @@ "cache" : {"allowed" : false}, "minification" : { "js" : false, - "css" : true, - "html" : false, + "css" : false, + "html" : true, "img" : false }, "github_key" : "891c251b925e4e967fa9", diff --git a/lib/client/editor/_codemirror.js b/lib/client/editor/_codemirror.js index bb63ef91..82141574 100644 --- a/lib/client/editor/_codemirror.js +++ b/lib/client/editor/_codemirror.js @@ -171,7 +171,7 @@ var CloudCommander, Util, DOM, CodeMirror; Loading = false; } }); - }; + } /** * function hides CodeMirror editor diff --git a/lib/client/storage/_github.js b/lib/client/storage/_github.js index 716dd764..1bbb5e2f 100644 --- a/lib/client/storage/_github.js +++ b/lib/client/storage/_github.js @@ -3,18 +3,18 @@ var CloudCommander, Util, DOM, $, Github, cb; (function(){ "use strict"; - - const cloudcmd = CloudCommander, - Cache = DOM.Cache, - - APIURL = '/api/v1', - AuthURL = APIURL + '/auth', - GitHubIdURL = APIURL + '/github_key'; - - var GitHub_ID, - GithubLocal, - User, - GithubStore = {}; + + var cloudcmd = CloudCommander, + Cache = DOM.Cache, + + APIURL = '/api/v1', + AuthURL = APIURL + '/auth', + GitHubIdURL = APIURL + '/github_key', + + GitHub_ID, + GithubLocal, + User, + GithubStore = {}; /* temporary callback function for work with github */ cb = function (err, data){ console.log(err || data);}; diff --git a/test/test.sh b/test/test.sh index 72d745b1..44d1ac51 100755 --- a/test/test.sh +++ b/test/test.sh @@ -1,7 +1,7 @@ #!/bin/sh npm i recess jshint echo "jshint server.js client.js cloudcmd.js" -node_modules/jshint/bin/hint --config test/.jshintrc server.js client.js cloudcmd.js +node_modules/jshint/bin/hint --config test/.jshintrc lib/server.js lib/client.js cloudcmd.js echo "jshint lib/cloudfunc.js lib/client/keyBinding.js" node_modules/jshint/bin/hint --config test/.jshintrc lib/util.js lib/cloudfunc.js node_modules/minify/minify.js lib/client/keyBinding.js echo "lib/client/dom.js lib/client/ie.js lib/client/menu.js lib/client/socket.js ./lib/client/terminal.js lib/client/viewer.js lib/client/storage/_github.js lib/client/menu.js lib/client/editor/_codemirror.js" @@ -12,5 +12,5 @@ node_modules/jshint/bin/hint --config test/.jshintrc ./package.json ./config.jso echo "recess css/*.css" ./node_modules/recess/bin/recess css/*.css node test/test.js -node cloudcmd.js test -ls ./min \ No newline at end of file +npm r recess jshint +node cloudcmd.js test \ No newline at end of file