From fe95e52535a28161b3c6a8ed6afeebc862ce6a9a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 7 Jul 2012 12:50:20 -0400 Subject: [PATCH] added information about install --- README.md | 19 +++++++++++++------ lib/server/minify | 2 +- server.js | 9 ++++++++- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fc55b9af..2e6a5f4d 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,16 @@ Limited-mode features: - no local caching - full loading of all web page(with styles, js-scripts, html-page etc). +Installing +--------------- +**Cloud Commander** installing is very easy. All you need it's just clone +repository from github. Install and start, just 3 commands: + +git clone git://github.com/coderaiser/cloudcmd.git +cd cloudcmd +node server.js + + Hot keys: --------------- In all modern web browsers (but not in IE, becouse he special) hot keys works. @@ -42,12 +52,9 @@ Additional modules: --------------- **Cloud Commander** not using additional modules for main functionality. But for minification and optimization tricks optional can be -assingned (and installed) modules: -- [UglifyJS] (https://github.com/mishoo/UglifyJS) -- [clean-css] (https://github.com/GoalSmashers/clean-css) -- [html-minifier] (https://github.com/kangax/html-minifier) -- [css-b64-images] (https://github.com/Filirom1/css-base64-images) +assingned (and installed) module: [Minify] (https://github.com/coderaiser/minify "Minify") Install addtitional modules: - npm i uglify-js clean-css html-minifier css-b64-images \ No newline at end of file + git submodule init + git submodule update \ No newline at end of file diff --git a/lib/server/minify b/lib/server/minify index fa1362fc..33f12832 160000 --- a/lib/server/minify +++ b/lib/server/minify @@ -1 +1 @@ -Subproject commit fa1362fca72938de1af93f5cf01e6a450e009c88 +Subproject commit 33f1283267d19de96106e64a883fadfd2f0cdd96 diff --git a/server.js b/server.js index 74226864..25b67516 100644 --- a/server.js +++ b/server.js @@ -153,7 +153,14 @@ CloudServer.Minify={ if(this._allowed.css || this._allowed.js || this._allowed.html){ - var lMinify = require(CloudServer.LIBDIRSERVER+'/minify'); + try + var lMinify = require(CloudServer.LIBDIRSERVER+'/minify'); + catch(pError){ + console.log('Could not minify withou minify module\n + + 'for fixing type:\n' + + 'git submodule init\n' + + 'git submodule update'); + } this.done.js=this._allowed.js? lMinify.jsScripts(['client.js',