feature(cloudcmd) add --minify, --no-minify

This commit is contained in:
coderaiser 2015-04-15 04:04:23 -04:00
parent 3c9c97560f
commit 5afcd10313
3 changed files with 9 additions and 2 deletions

View file

@ -70,6 +70,8 @@ Cloud Commander supports command line parameters:
| `--no-auth` | disable authorization
| `--no-server` | do not start server
| `--no-online` | load scripts from local server
| `--minify` | enable minification
| `--no-minify` | disable minification
If no parameters given Cloud Commander reads information from `~/.cloudcmd.json` and use
port from it (`8000` default). if port variables `PORT` or `VCAP_APP_PORT` isn't exist.

View file

@ -28,12 +28,14 @@
'repl',
'save',
'server',
'online'
'online',
'minify'
],
default: {
server : true,
auth : config('auth'),
port : config('port'),
minify : config('minify'),
online : config('online'),
username : config('username'),
},
@ -65,6 +67,7 @@
config('auth', args.auth);
config('online', args.online);
config('minify', args.minify);
config('username', args.username);
root(args.root);

View file

@ -11,5 +11,7 @@
"--port " : "set port number",
"--no-auth " : "disable authorization",
"--no-server " : "do not start server",
"--no-online " : "load scripts from local server"
"--no-online " : "load scripts from local server",
"--minify " : "enable minification",
"--no-minify " : "disable minification"
}