1
|
"use strict";
|
2
|
|
3
|
module.exports = {
|
4
|
filename: {
|
5
|
type: "filename",
|
6
|
description: "filename to use when reading from stdin - this will be used in source-maps, errors etc",
|
7
|
default: "unknown",
|
8
|
shorthand: "f"
|
9
|
},
|
10
|
|
11
|
filenameRelative: {
|
12
|
hidden: true,
|
13
|
type: "string"
|
14
|
},
|
15
|
|
16
|
inputSourceMap: {
|
17
|
hidden: true
|
18
|
},
|
19
|
|
20
|
env: {
|
21
|
hidden: true,
|
22
|
default: {}
|
23
|
},
|
24
|
|
25
|
mode: {
|
26
|
description: "",
|
27
|
hidden: true
|
28
|
},
|
29
|
|
30
|
retainLines: {
|
31
|
type: "boolean",
|
32
|
default: false,
|
33
|
description: "retain line numbers - will result in really ugly code"
|
34
|
},
|
35
|
|
36
|
highlightCode: {
|
37
|
description: "enable/disable ANSI syntax highlighting of code frames (on by default)",
|
38
|
type: "boolean",
|
39
|
default: true
|
40
|
},
|
41
|
|
42
|
suppressDeprecationMessages: {
|
43
|
type: "boolean",
|
44
|
default: false,
|
45
|
hidden: true
|
46
|
},
|
47
|
|
48
|
presets: {
|
49
|
type: "list",
|
50
|
description: "",
|
51
|
default: []
|
52
|
},
|
53
|
|
54
|
plugins: {
|
55
|
type: "list",
|
56
|
default: [],
|
57
|
description: ""
|
58
|
},
|
59
|
|
60
|
ignore: {
|
61
|
type: "list",
|
62
|
description: "list of glob paths to **not** compile",
|
63
|
default: []
|
64
|
},
|
65
|
|
66
|
only: {
|
67
|
type: "list",
|
68
|
description: "list of glob paths to **only** compile"
|
69
|
},
|
70
|
|
71
|
code: {
|
72
|
hidden: true,
|
73
|
default: true,
|
74
|
type: "boolean"
|
75
|
},
|
76
|
|
77
|
metadata: {
|
78
|
hidden: true,
|
79
|
default: true,
|
80
|
type: "boolean"
|
81
|
},
|
82
|
|
83
|
ast: {
|
84
|
hidden: true,
|
85
|
default: true,
|
86
|
type: "boolean"
|
87
|
},
|
88
|
|
89
|
extends: {
|
90
|
type: "string",
|
91
|
hidden: true
|
92
|
},
|
93
|
|
94
|
comments: {
|
95
|
type: "boolean",
|
96
|
default: true,
|
97
|
description: "write comments to generated output (true by default)"
|
98
|
},
|
99
|
|
100
|
shouldPrintComment: {
|
101
|
hidden: true,
|
102
|
description: "optional callback to control whether a comment should be inserted, when this is used the comments option is ignored"
|
103
|
},
|
104
|
|
105
|
wrapPluginVisitorMethod: {
|
106
|
hidden: true,
|
107
|
description: "optional callback to wrap all visitor methods"
|
108
|
},
|
109
|
|
110
|
compact: {
|
111
|
type: "booleanString",
|
112
|
default: "auto",
|
113
|
description: "do not include superfluous whitespace characters and line terminators [true|false|auto]"
|
114
|
},
|
115
|
|
116
|
minified: {
|
117
|
type: "boolean",
|
118
|
default: false,
|
119
|
description: "save as much bytes when printing [true|false]"
|
120
|
},
|
121
|
|
122
|
sourceMap: {
|
123
|
alias: "sourceMaps",
|
124
|
hidden: true
|
125
|
},
|
126
|
|
127
|
sourceMaps: {
|
128
|
type: "booleanString",
|
129
|
description: "[true|false|inline]",
|
130
|
default: false,
|
131
|
shorthand: "s"
|
132
|
},
|
133
|
|
134
|
sourceMapTarget: {
|
135
|
type: "string",
|
136
|
description: "set `file` on returned source map"
|
137
|
},
|
138
|
|
139
|
sourceFileName: {
|
140
|
type: "string",
|
141
|
description: "set `sources[0]` on returned source map"
|
142
|
},
|
143
|
|
144
|
sourceRoot: {
|
145
|
type: "filename",
|
146
|
description: "the root from which all sources are relative"
|
147
|
},
|
148
|
|
149
|
babelrc: {
|
150
|
description: "Whether or not to look up .babelrc and .babelignore files",
|
151
|
type: "boolean",
|
152
|
default: true
|
153
|
},
|
154
|
|
155
|
sourceType: {
|
156
|
description: "",
|
157
|
default: "module"
|
158
|
},
|
159
|
|
160
|
auxiliaryCommentBefore: {
|
161
|
type: "string",
|
162
|
description: "print a comment before any injected non-user code"
|
163
|
},
|
164
|
|
165
|
auxiliaryCommentAfter: {
|
166
|
type: "string",
|
167
|
description: "print a comment after any injected non-user code"
|
168
|
},
|
169
|
|
170
|
resolveModuleSource: {
|
171
|
hidden: true
|
172
|
},
|
173
|
|
174
|
getModuleId: {
|
175
|
hidden: true
|
176
|
},
|
177
|
|
178
|
moduleRoot: {
|
179
|
type: "filename",
|
180
|
description: "optional prefix for the AMD module formatter that will be prepend to the filename on module definitions"
|
181
|
},
|
182
|
|
183
|
moduleIds: {
|
184
|
type: "boolean",
|
185
|
default: false,
|
186
|
shorthand: "M",
|
187
|
description: "insert an explicit id for modules"
|
188
|
},
|
189
|
|
190
|
moduleId: {
|
191
|
description: "specify a custom name for module ids",
|
192
|
type: "string"
|
193
|
},
|
194
|
|
195
|
passPerPreset: {
|
196
|
description: "Whether to spawn a traversal pass per a preset. By default all presets are merged.",
|
197
|
type: "boolean",
|
198
|
default: false,
|
199
|
hidden: true
|
200
|
},
|
201
|
|
202
|
parserOpts: {
|
203
|
description: "Options to pass into the parser, or to change parsers (parserOpts.parser)",
|
204
|
default: false
|
205
|
},
|
206
|
|
207
|
generatorOpts: {
|
208
|
description: "Options to pass into the generator, or to change generators (generatorOpts.generator)",
|
209
|
default: false
|
210
|
}
|
211
|
};
|