feature(cloudcmd) rm config option: minify

This commit is contained in:
coderaiser 2017-07-11 16:39:03 +03:00
parent 039b535098
commit 03dbb4489b
7 changed files with 2 additions and 20 deletions

View file

@ -77,7 +77,6 @@ Cloud Commander supports command line parameters:
| `--root` | set root directory | `--root` | set root directory
| `--prefix` | set url prefix | `--prefix` | set url prefix
| `--port` | set port number | `--port` | set port number
| `--minify` | enable minification
| `--progress` | show progress of file operations | `--progress` | show progress of file operations
| `--html-dialogs` | use html dialogs | `--html-dialogs` | use html dialogs
| `--open` | open web browser when server started | `--open` | open web browser when server started
@ -90,7 +89,6 @@ Cloud Commander supports command line parameters:
| `--no-auth` | disable authorization | `--no-auth` | disable authorization
| `--no-online` | load scripts from local server | `--no-online` | load scripts from local server
| `--no-open` | do not open web browser when server started | `--no-open` | do not open web browser when server started
| `--no-minify` | disable minification
| `--no-progress` | do not show progress of file operations | `--no-progress` | do not show progress of file operations
| `--no-html-dialogs` | do not use html dialogs | `--no-html-dialogs` | do not use html dialogs
| `--no-one-panel-mode` | unset one panel mode | `--no-one-panel-mode` | unset one panel mode
@ -309,7 +307,6 @@ Here is description of options:
"localStorage" : true, /* local storage */ "localStorage" : true, /* local storage */
"buffer" : true, /* buffer for copying files */ "buffer" : true, /* buffer for copying files */
"dirStorage" : true, /* store directory listing to localStorage */ "dirStorage" : true, /* store directory listing to localStorage */
"minify" : false, /* minification of js,css,html and img */
"online" : true, /* load js files from cdn or local path */ "online" : true, /* load js files from cdn or local path */
"open" : false /* open web browser when server started */ "open" : false /* open web browser when server started */
"cache" : true, /* add cache-control */ "cache" : true, /* add cache-control */

View file

@ -36,7 +36,6 @@ const args = require('minimist')(argv.slice(2), {
'server', 'server',
'online', 'online',
'open', 'open',
'minify',
'progress', 'progress',
'config-dialog', 'config-dialog',
'console', 'console',
@ -49,7 +48,6 @@ const args = require('minimist')(argv.slice(2), {
server : true, server : true,
auth : choose(env('auth'), config('auth')), auth : choose(env('auth'), config('auth')),
port : config('port'), port : config('port'),
minify : config('minify'),
online : config('online'), online : config('online'),
open : config('open'), open : config('open'),
editor : env('editor') || config('editor'), editor : env('editor') || config('editor'),
@ -100,7 +98,6 @@ function main() {
config('auth', args.auth); config('auth', args.auth);
config('online', args.online); config('online', args.online);
config('open', args.open); config('open', args.open);
config('minify', args.minify);
config('username', args.username); config('username', args.username);
config('progress', args.progress); config('progress', args.progress);
config('console', args.console); config('console', args.console);

View file

@ -10,7 +10,6 @@
"localStorage": true, "localStorage": true,
"buffer": true, "buffer": true,
"dirStorage": false, "dirStorage": false,
"minify": false,
"online": true, "online": true,
"open": false, "open": false,
"cache": true, "cache": true,

View file

@ -13,7 +13,6 @@
"--root ": "set root directory", "--root ": "set root directory",
"--prefix ": "set url prefix", "--prefix ": "set url prefix",
"--port ": "set port number", "--port ": "set port number",
"--minify ": "enable minification",
"--progress ": "show progress of file operations", "--progress ": "show progress of file operations",
"--html-dialogs ": "use html dialogs", "--html-dialogs ": "use html dialogs",
"--one-panel-mode ": "set one panel mode", "--one-panel-mode ": "set one panel mode",
@ -26,7 +25,6 @@
"--no-auth ": "disable authorization", "--no-auth ": "disable authorization",
"--no-online ": "load scripts from local server", "--no-online ": "load scripts from local server",
"--no-open ": "do not open web browser when server started", "--no-open ": "do not open web browser when server started",
"--no-minify ": "disable minification",
"--no-progress ": "do not show progress of file operations", "--no-progress ": "do not show progress of file operations",
"--no-html-dialogs ": "do not use html dialogs", "--no-html-dialogs ": "do not use html dialogs",
"--no-one-panel-mode ": "unset one panel mode", "--no-one-panel-mode ": "unset one panel mode",

View file

@ -36,7 +36,6 @@ programs in browser from any computer, mobile or tablet device.
--root set root directory --root set root directory
--prefix set url prefix --prefix set url prefix
--port set port number --port set port number
--minify enable minification
--progress show progress of file operations --progress show progress of file operations
--html-dialogs use html dialogs --html-dialogs use html dialogs
--open open web browser when server started --open open web browser when server started
@ -49,7 +48,6 @@ programs in browser from any computer, mobile or tablet device.
--no-server do not start server --no-server do not start server
--no-online load scripts from local server --no-online load scripts from local server
--no-open do not open web browser when server started --no-open do not open web browser when server started
--no-minify disable minification
--no-progress do not show progress of file operations --no-progress do not show progress of file operations
--no-html-dialogs do not use html dialogs --no-html-dialogs do not use html dialogs
--no-one-panel-mode unset one panel mode --no-one-panel-mode unset one panel mode

View file

@ -193,7 +193,6 @@ function cloudcmd(prefix, plugins, modules) {
return config(name); return config(name);
}; };
const minify = apart(isOption, 'minify');
const online = apart(isOption, 'online'); const online = apart(isOption, 'online');
const cache = apart(isOption, 'cache'); const cache = apart(isOption, 'cache');
const diff = apart(isOption, 'diff'); const diff = apart(isOption, 'diff');
@ -275,8 +274,8 @@ function cloudcmd(prefix, plugins, modules) {
route, route,
join({ join({
dir : DIR_ROOT, dir: DIR_ROOT,
minify, minify: false,
}), }),
pluginer(plugins), pluginer(plugins),

View file

@ -70,12 +70,6 @@
Directory Storage Directory Storage
</label> </label>
</li> </li>
<li>
<label>
<input data-name="js-minify" type="checkbox" {{ minify }}>
Minify
</label>
</li>
<li> <li>
<label> <label>
<input data-name="js-online" type="checkbox" {{ online }}> <input data-name="js-online" type="checkbox" {{ online }}>