Skip to content

Commit

Permalink
feature(cloudcmd) rm config option: minify
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jul 14, 2017
1 parent 039b535 commit 03dbb44
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 20 deletions.
3 changes: 0 additions & 3 deletions HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ Cloud Commander supports command line parameters:
| `--root` | set root directory
| `--prefix` | set url prefix
| `--port` | set port number
| `--minify` | enable minification
| `--progress` | show progress of file operations
| `--html-dialogs` | use html dialogs
| `--open` | open web browser when server started
Expand All @@ -90,7 +89,6 @@ Cloud Commander supports command line parameters:
| `--no-auth` | disable authorization
| `--no-online` | load scripts from local server
| `--no-open` | do not open web browser when server started
| `--no-minify` | disable minification
| `--no-progress` | do not show progress of file operations
| `--no-html-dialogs` | do not use html dialogs
| `--no-one-panel-mode` | unset one panel mode
Expand Down Expand Up @@ -309,7 +307,6 @@ Here is description of options:
"localStorage" : true, /* local storage */
"buffer" : true, /* buffer for copying files */
"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 */
"open" : false /* open web browser when server started */
"cache" : true, /* add cache-control */
Expand Down
3 changes: 0 additions & 3 deletions bin/cloudcmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const args = require('minimist')(argv.slice(2), {
'server',
'online',
'open',
'minify',
'progress',
'config-dialog',
'console',
Expand All @@ -49,7 +48,6 @@ const args = require('minimist')(argv.slice(2), {
server : true,
auth : choose(env('auth'), config('auth')),
port : config('port'),
minify : config('minify'),
online : config('online'),
open : config('open'),
editor : env('editor') || config('editor'),
Expand Down Expand Up @@ -100,7 +98,6 @@ function main() {
config('auth', args.auth);
config('online', args.online);
config('open', args.open);
config('minify', args.minify);
config('username', args.username);
config('progress', args.progress);
config('console', args.console);
Expand Down
1 change: 0 additions & 1 deletion json/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"localStorage": true,
"buffer": true,
"dirStorage": false,
"minify": false,
"online": true,
"open": false,
"cache": true,
Expand Down
2 changes: 0 additions & 2 deletions json/help.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"--root ": "set root directory",
"--prefix ": "set url prefix",
"--port ": "set port number",
"--minify ": "enable minification",
"--progress ": "show progress of file operations",
"--html-dialogs ": "use html dialogs",
"--one-panel-mode ": "set one panel mode",
Expand All @@ -26,7 +25,6 @@
"--no-auth ": "disable authorization",
"--no-online ": "load scripts from local server",
"--no-open ": "do not open web browser when server started",
"--no-minify ": "disable minification",
"--no-progress ": "do not show progress of file operations",
"--no-html-dialogs ": "do not use html dialogs",
"--no-one-panel-mode ": "unset one panel mode",
Expand Down
2 changes: 0 additions & 2 deletions man/cloudcmd.1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ programs in browser from any computer, mobile or tablet device.
--root set root directory
--prefix set url prefix
--port set port number
--minify enable minification
--progress show progress of file operations
--html-dialogs use html dialogs
--open open web browser when server started
Expand All @@ -49,7 +48,6 @@ programs in browser from any computer, mobile or tablet device.
--no-server do not start server
--no-online load scripts from local server
--no-open do not open web browser when server started
--no-minify disable minification
--no-progress do not show progress of file operations
--no-html-dialogs do not use html dialogs
--no-one-panel-mode unset one panel mode
Expand Down
5 changes: 2 additions & 3 deletions server/cloudcmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ function cloudcmd(prefix, plugins, modules) {
return config(name);
};

const minify = apart(isOption, 'minify');
const online = apart(isOption, 'online');
const cache = apart(isOption, 'cache');
const diff = apart(isOption, 'diff');
Expand Down Expand Up @@ -275,8 +274,8 @@ function cloudcmd(prefix, plugins, modules) {
route,

join({
dir : DIR_ROOT,
minify,
dir: DIR_ROOT,
minify: false,
}),

pluginer(plugins),
Expand Down
6 changes: 0 additions & 6 deletions tmpl/config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@
Directory Storage
</label>
</li>
<li>
<label>
<input data-name="js-minify" type="checkbox" {{ minify }}>
Minify
</label>
</li>
<li>
<label>
<input data-name="js-online" type="checkbox" {{ online }}>
Expand Down

0 comments on commit 03dbb44

Please sign in to comment.