mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
minor changes
This commit is contained in:
parent
d0dffac037
commit
cf5e088812
3 changed files with 11 additions and 11 deletions
|
|
@ -34,7 +34,7 @@ function readConfig(){
|
|||
* not created, just init and
|
||||
* all logs writed to screen
|
||||
*/
|
||||
if (process.argv[2] === 'test') {
|
||||
if (process.argv[process.argv] === 'test') {
|
||||
console.log(process.argv);
|
||||
lConfig.server = false;
|
||||
lConfig.logs = false;
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ CloudServer.start = function (pConfig) {
|
|||
'using default values...\n' +
|
||||
JSON.stringify(this.Config));
|
||||
|
||||
console.log(pConfig);
|
||||
this.init();
|
||||
|
||||
this.Port = process.env.PORT || /* c9 */
|
||||
|
|
|
|||
19
test/test.sh
19
test/test.sh
|
|
@ -1,17 +1,16 @@
|
|||
#!/bin/sh
|
||||
#linting js files
|
||||
npm i jshint -g
|
||||
echo "jshint server.js client.js lib/cloudfunc.js"
|
||||
jshint --config ./test/.jshintrc ./server.js ./client.js ./cloudcmd.js
|
||||
echo "jshint ./lib/cloudfunc.js ./lib/server/minify/minify.js ./lib/client/keyBinding.js"
|
||||
jshint --config ./test/.jshintrc ./lib/cloudfunc.js ./node_modules/minify/minify.js ./lib/client/keyBinding.js
|
||||
npm i jshint
|
||||
echo "jshint server.js client.js cloudcmd.js"
|
||||
./node_modules/jshint/bin/hint --config .jshintrc ../server.js ../client.js ../cloudcmd.js
|
||||
echo "jshint lib/cloudfunc.js lib/client/keyBinding.js"
|
||||
./node_modules/jshint/bin/hint --config ./test/.jshintrc ./lib/cloudfunc.js ./node_modules/minify/minify.js ./lib/client/keyBinding.js
|
||||
echo "jshint ./package.json ./config.json"
|
||||
jshint --config ./test/.jshintrc ./package.json ./config.json
|
||||
npm i uglify-js clean-css html-minifier css-b64-images
|
||||
./node_modules/jshint/bin/hint --config ./test/.jshintrc ./package.json ./config.json
|
||||
#linting css files
|
||||
npm i recess -g
|
||||
echo "recess ./css/*.css"
|
||||
recess css/*.css
|
||||
npm i recess
|
||||
echo "recess css/*.css"
|
||||
./node_modules/recess/bin/recess css/*.css
|
||||
node ./test/test.js
|
||||
node cloudcmd.js test
|
||||
ls ./min
|
||||
Loading…
Add table
Add a link
Reference in a new issue