@@ -15,44 +15,44 @@ const BASIC_GROUP = 'Basic options:';
15
15
const options = {
16
16
bonjour : {
17
17
type : 'boolean' ,
18
- describe : 'Broadcasts the server via ZeroConf networking on start'
18
+ describe : 'Broadcasts the server via ZeroConf networking on start' ,
19
19
} ,
20
20
lazy : {
21
21
type : 'boolean' ,
22
- describe : 'Lazy'
22
+ describe : 'Lazy' ,
23
23
} ,
24
24
inline : {
25
25
type : 'boolean' ,
26
26
default : true ,
27
27
describe :
28
- 'Inline mode (set to false to disable including client scripts like livereload)'
28
+ 'Inline mode (set to false to disable including client scripts like livereload)' ,
29
29
} ,
30
30
progress : {
31
31
type : 'boolean' ,
32
32
describe : 'Print compilation progress in percentage' ,
33
- group : BASIC_GROUP
33
+ group : BASIC_GROUP ,
34
34
} ,
35
35
'hot-only' : {
36
36
type : 'boolean' ,
37
37
describe : 'Do not refresh page if HMR fails' ,
38
- group : ADVANCED_GROUP
38
+ group : ADVANCED_GROUP ,
39
39
} ,
40
40
stdin : {
41
41
type : 'boolean' ,
42
- describe : 'close when stdin ends'
42
+ describe : 'close when stdin ends' ,
43
43
} ,
44
44
open : {
45
45
type : 'string' ,
46
- describe : 'Open the default browser, or optionally specify a browser name'
46
+ describe : 'Open the default browser, or optionally specify a browser name' ,
47
47
} ,
48
48
useLocalIp : {
49
49
type : 'boolean' ,
50
- describe : 'Open default browser with local IP'
50
+ describe : 'Open default browser with local IP' ,
51
51
} ,
52
52
'open-page' : {
53
53
type : 'string' ,
54
54
describe : 'Open default browser with the specified page' ,
55
- requiresArg : true
55
+ requiresArg : true ,
56
56
} ,
57
57
color : {
58
58
type : 'boolean' ,
@@ -63,106 +63,106 @@ const options = {
63
63
return require ( 'supports-color' ) . stdout ;
64
64
} ,
65
65
group : DISPLAY_GROUP ,
66
- describe : 'Enables/Disables colors on the console'
66
+ describe : 'Enables/Disables colors on the console' ,
67
67
} ,
68
68
info : {
69
69
type : 'boolean' ,
70
70
group : DISPLAY_GROUP ,
71
71
default : true ,
72
- describe : 'Info'
72
+ describe : 'Info' ,
73
73
} ,
74
74
quiet : {
75
75
type : 'boolean' ,
76
76
group : DISPLAY_GROUP ,
77
- describe : 'Quiet'
77
+ describe : 'Quiet' ,
78
78
} ,
79
79
'client-log-level' : {
80
80
type : 'string' ,
81
81
group : DISPLAY_GROUP ,
82
82
default : 'info' ,
83
- describe : 'Log level in the browser (info, warning, error or none)'
83
+ describe : 'Log level in the browser (info, warning, error or none)' ,
84
84
} ,
85
85
https : {
86
86
type : 'boolean' ,
87
87
group : SSL_GROUP ,
88
- describe : 'HTTPS'
88
+ describe : 'HTTPS' ,
89
89
} ,
90
90
key : {
91
91
type : 'string' ,
92
92
describe : 'Path to a SSL key.' ,
93
- group : SSL_GROUP
93
+ group : SSL_GROUP ,
94
94
} ,
95
95
cert : {
96
96
type : 'string' ,
97
97
describe : 'Path to a SSL certificate.' ,
98
- group : SSL_GROUP
98
+ group : SSL_GROUP ,
99
99
} ,
100
100
cacert : {
101
101
type : 'string' ,
102
102
describe : 'Path to a SSL CA certificate.' ,
103
- group : SSL_GROUP
103
+ group : SSL_GROUP ,
104
104
} ,
105
105
pfx : {
106
106
type : 'string' ,
107
107
describe : 'Path to a SSL pfx file.' ,
108
- group : SSL_GROUP
108
+ group : SSL_GROUP ,
109
109
} ,
110
110
'pfx-passphrase' : {
111
111
type : 'string' ,
112
112
describe : 'Passphrase for pfx file.' ,
113
- group : SSL_GROUP
113
+ group : SSL_GROUP ,
114
114
} ,
115
115
'content-base' : {
116
116
type : 'string' ,
117
117
describe : 'A directory or URL to serve HTML content from.' ,
118
- group : RESPONSE_GROUP
118
+ group : RESPONSE_GROUP ,
119
119
} ,
120
120
'watch-content-base' : {
121
121
type : 'boolean' ,
122
122
describe : 'Enable live-reloading of the content-base.' ,
123
- group : RESPONSE_GROUP
123
+ group : RESPONSE_GROUP ,
124
124
} ,
125
125
'history-api-fallback' : {
126
126
type : 'boolean' ,
127
127
describe : 'Fallback to /index.html for Single Page Applications.' ,
128
- group : RESPONSE_GROUP
128
+ group : RESPONSE_GROUP ,
129
129
} ,
130
130
compress : {
131
131
type : 'boolean' ,
132
132
describe : 'Enable gzip compression' ,
133
- group : RESPONSE_GROUP
133
+ group : RESPONSE_GROUP ,
134
134
} ,
135
135
port : {
136
136
describe : 'The port' ,
137
- group : CONNECTION_GROUP
137
+ group : CONNECTION_GROUP ,
138
138
} ,
139
139
'disable-host-check' : {
140
140
type : 'boolean' ,
141
141
describe : 'Will not check the host' ,
142
- group : CONNECTION_GROUP
142
+ group : CONNECTION_GROUP ,
143
143
} ,
144
144
socket : {
145
145
type : 'String' ,
146
146
describe : 'Socket to listen' ,
147
- group : CONNECTION_GROUP
147
+ group : CONNECTION_GROUP ,
148
148
} ,
149
149
public : {
150
150
type : 'string' ,
151
151
describe : 'The public hostname/ip address of the server' ,
152
- group : CONNECTION_GROUP
152
+ group : CONNECTION_GROUP ,
153
153
} ,
154
154
host : {
155
155
type : 'string' ,
156
156
default : 'localhost' ,
157
157
describe : 'The hostname/ip address the server will bind to' ,
158
- group : CONNECTION_GROUP
158
+ group : CONNECTION_GROUP ,
159
159
} ,
160
160
'allowed-hosts' : {
161
161
type : 'string' ,
162
162
describe :
163
163
'A comma-delimited string of hosts that are allowed to access the dev server' ,
164
- group : CONNECTION_GROUP
165
- }
164
+ group : CONNECTION_GROUP ,
165
+ } ,
166
166
} ;
167
167
168
168
module . exports = options ;
0 commit comments