-
Notifications
You must be signed in to change notification settings - Fork 1
/
help.txt
207 lines (207 loc) · 15.5 KB
/
help.txt
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
--accept_const_keyword : Allows usage of const keyword.
--charset VAL : Input and output charset for all files
. By default, we accept UTF-8 as input
and output US_ASCII
--closure_entry_point VAL : Entry points to the program. Must be g
oog.provide'd symbols. Any goog.provid
e'd symbols that are not a transitive
dependency of the entry points will be
removed. Files without goog.provides,
and their dependencies, will always b
e left in. If any entry points are spe
cified, then the manage_closure_depend
encies option will be set to true and
all files will be sorted in dependency
order.
--common_js_entry_module VAL : Root of your common JS dependency hier
archy. Your main script.
--common_js_module_path_prefix VAL : Path prefix to be removed from CommonJ
S module names.
--compilation_level [WHITESPACE_ONLY | : Specifies the compilation level to use
SIMPLE_OPTIMIZATIONS | ADVANCED_OPTIM : . Options: WHITESPACE_ONLY, SIMPLE_OPT
IZATIONS] : IMIZATIONS, ADVANCED_OPTIMIZATIONS
--create_name_map_files : If true, variable renaming and propert
y renaming map files will be produced
as {binary name}_vars_map.out and {bin
ary name}_props_map.out. Note that thi
s flag cannot be used in conjunction w
ith either variable_map_output_file or
property_map_output_file
--create_source_map VAL : If specified, a source map file mappin
g the generated source files back to t
he original source file will be output
to the specified path. The %outname%
placeholder will expand to the name of
the output file that the source map c
orresponds to.
--debug : Enable debugging options
--define (--D, -D) VAL : Override the value of a variable annot
ated @define. The format is <name>[=<v
al>], where <name> is the name of a @d
efine variable and <val> is a boolean,
number, or a single-quoted string tha
t contains no single quotes. If [=<val
>] is omitted, the variable is marked
true
--externs VAL : The file containing JavaScript externs
. You may specify multiple
--flagfile VAL : A file containing additional command-l
ine options.
--formatting [PRETTY_PRINT | PRINT_INP : Specifies which formatting options, if
UT_DELIMITER] : any, should be applied to the output
JS. Options: PRETTY_PRINT, PRINT_INPUT
_DELIMITER
--generate_exports : Generates export code for those marked
with @export
--help : Displays this message
--js VAL : The JavaScript filename. You may speci
fy multiple
--js_output_file VAL : Primary output filename. If not specif
ied, output is written to stdout
--jscomp_error VAL : Make the named class of warnings an er
ror. Options:accessControls, ambiguous
FunctionDecl, checkRegExp, checkTypes,
checkVars, const, constantProperty, d
eprecated, duplicateMessage, es5Strict
, externsValidation, fileoverviewTags,
globalThis, internetExplorerChecks, i
nvalidCasts, missingProperties, nonSta
ndardJsDocs, strictModuleDepCheck, typ
eInvalidation, undefinedNames, undefin
edVars, unknownDefines, uselessCode, v
isibility
--jscomp_off VAL : Turn off the named class of warnings.
Options:accessControls, ambiguousFunct
ionDecl, checkRegExp, checkTypes, chec
kVars, const, constantProperty, deprec
ated, duplicateMessage, es5Strict, ext
ernsValidation, fileoverviewTags, glob
alThis, internetExplorerChecks, invali
dCasts, missingProperties, nonStandard
JsDocs, strictModuleDepCheck, typeInva
lidation, undefinedNames, undefinedVar
s, unknownDefines, uselessCode, visibi
lity
--jscomp_warning VAL : Make the named class of warnings a nor
mal warning. Options:accessControls, a
mbiguousFunctionDecl, checkRegExp, che
ckTypes, checkVars, const, constantPro
perty, deprecated, duplicateMessage, e
s5Strict, externsValidation, fileoverv
iewTags, globalThis, internetExplorerC
hecks, invalidCasts, missingProperties
, nonStandardJsDocs, strictModuleDepCh
eck, typeInvalidation, undefinedNames,
undefinedVars, unknownDefines, useles
sCode, visibility
--language_in VAL : Sets what language spec that input sou
rces conform. Options: ECMASCRIPT3 (de
fault), ECMASCRIPT5, ECMASCRIPT5_STRIC
T
--logging_level VAL : The logging level (standard java.util.
logging.Level values) for Compiler pro
gress. Does not control errors or warn
ings for the JavaScript code under com
pilation
--manage_closure_dependencies : Automatically sort dependencies so tha
t a file that goog.provides symbol X w
ill always come before a file that goo
g.requires symbol X. If an input provi
des symbols, and those symbols are nev
er required, then that input will not
be included in the compilation.
--module VAL : A JavaScript module specification. The
format is <name>:<num-js-files>[:[<de
p>,...][:]]]. Module names must be uni
que. Each dep is the name of a module
that this module depends on. Modules m
ust be listed in dependency order, and
JS source files must be listed in the
corresponding order. Where --module f
lags occur in relation to --js flags i
s unimportant
--module_output_path_prefix VAL : Prefix for filenames of compiled JS mo
dules. <module-name>.js will be append
ed to this prefix. Directories will be
created as needed. Use with --module
--module_wrapper VAL : An output wrapper for a JavaScript mod
ule (optional). The format is <name>:<
wrapper>. The module name must corresp
ond with a module specified using --mo
dule. The wrapper must contain %s as t
he code placeholder. The %basename% pl
aceholder can also be used to substitu
te the base name of the module output
file.
--only_closure_dependencies : Only include files in the transitive d
ependency of the entry points (specifi
ed by closure_entry_point). Files that
do not provide dependencies will be r
emoved. This supersedesmanage_closure_
dependencies
--output_manifest VAL : Prints out a list of all the files in
the compilation. If --manage_closure_d
ependencies is on, this will not inclu
de files that got dropped because they
were not required. The %outname% plac
eholder expands to the JS output file.
If you're using modularization, using
%outname% will create a manifest for
each module.
--output_wrapper VAL : Interpolate output into this string at
the place denoted by the marker token
%output%. See --output_wrapper_marker
--print_ast : Prints a dot file describing the inter
nal abstract syntax tree and exits
--print_pass_graph : Prints a dot file describing the passe
s that will get run and exits
--print_tree : Prints out the parse tree and exits
--process_closure_primitives : Processes built-ins from the Closure l
ibrary, such as goog.require(), goog.p
rovide(), and goog.exportSymbol()
--process_common_js_modules : Process CommonJS modules to a concaten
able form.
--process_jquery_primitives : Processes built-ins from the Jquery li
brary, such as jQuery.fn and jQuery.ex
tend()
--property_map_input_file VAL : File containing the serialized version
of the property renaming map produced
by a previous compilation
--property_map_output_file VAL : File where the serialized version of t
he property renaming map produced shou
ld be saved
--source_map_format [V1 | DEFAULT | V2 : The source map format to produce. Opti
| V3] : ons: V1, V2, V3, DEFAULT. DEFAULT prod
uces V2.
--summary_detail_level N : Controls how detailed the compilation
summary is. Values: 0 (never print sum
mary), 1 (print summary only if there
are errors or warnings), 2 (print summ
ary if type checking is on, see --chec
k_types), 3 (always print summary). Th
e default level is 1
--third_party : Check source validity but do not enfor
ce Closure style rules and conventions
--transform_amd_modules : Transform AMD to CommonJS modules.
--translations_file VAL : Source of translated messages. Current
ly only supports XTB.
--translations_project VAL : Scopes all translations to the specifi
ed project.When specified, we will use
different message ids so that message
s in different projects can have diffe
rent translations.
--use_only_custom_externs : Specifies whether the default externs
should be excluded
--use_types_for_optimization : Experimental: perform additional optim
izations based on available informatio
n. Inaccurate type annotations may re
sult in incorrect results.
--variable_map_input_file VAL : File containing the serialized version
of the variable renaming map produced
by a previous compilation
--variable_map_output_file VAL : File where the serialized version of t
he variable renaming map produced shou
ld be saved
--version : Prints the compiler version to stderr.
--warning_level [QUIET | DEFAULT | VER : Specifies the warning level to use. Op
BOSE] : tions: QUIET, DEFAULT, VERBOSE