-
Notifications
You must be signed in to change notification settings - Fork 115
/
arguments.js
65 lines (65 loc) · 1.96 KB
/
arguments.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
sourceFiles: {
alias: 'f',
description: 'Glob expression to select spec files.'
},
serverPort: {
alias: 'p',
description: 'Specifies the port to be listened by Drakov server',
default: 3000
},
staticPaths: {
alias: 's',
description: 'A list of comma delimited paths to use for static file proxying'
},
pathDelimiter: {
alias: 'd',
description: 'Delimiter for mount point in static path (defaults is "=")'
},
stealthmode: {
description: 'Run silent (no console output)'
},
disableCORS: {
description: 'Disable CORS header'
},
sslKeyFile: {
description: 'Key File for SSL connections'
},
sslCrtFile: {
description: 'Certificate File for SSL connections'
},
delay: {
description: 'Add a delay to the response (in milliseconds)'
},
method: {
description: 'Add method to Access-Control-Allow-Methods response header'
},
header: {
description: 'Add header to Access-Control-Allow-Headers response header'
},
public: {
description: 'Allow external requests',
default: false
},
autoOptions: {
description: 'Automatically respond to OPTIONS requests for routes in spec files'
},
config: {
description: 'Load configuration from a Javascript file, must export an object'
},
discover: {
description: 'List all available endpoints under `/drakov`. If value of argument is a module name, it will be required and called to create a middleware function',
alias: 'D',
default: false
},
watch: {
description: 'Reload Drakov when change detected in list of source files'
},
debugMode: {
description: 'Enables DEBUG mode. Mismatch requests will be dumped'
},
ignoreHeader: {
description: 'Ignore the HTTP header in API blueprints',
type: 'array'
}
};