mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) add --minify, --no-minify
This commit is contained in:
parent
3c9c97560f
commit
5afcd10313
3 changed files with 9 additions and 2 deletions
2
HELP.md
2
HELP.md
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue