Skip to content
This repository was archived by the owner on May 2, 2019. It is now read-only.

Commit 25ac4c6

Browse files
committed
Merge pull request #77 from fredj/upgrade-compiler
Upgrade closure compiler version (v20151216)
2 parents 793db31 + 8b992cb commit 25ac4c6

File tree

2 files changed

+51
-34
lines changed

2 files changed

+51
-34
lines changed

compiler-options.txt

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,14 @@
7171
marked with @export
7272
--help : Displays this message on stdout and
7373
exit
74+
--hide_warnings_for VAL : If specified, files whose path
75+
contains this string will have their
76+
warnings hidden. You may specify
77+
multiple.
7478
--instrumentation_template VAL : A file containing an instrumentation
7579
template.
80+
--j2cl_pass : Rewrite J2CL output to be compiler-fri
81+
endly.
7682
--js VAL : The JavaScript filename. You may
7783
specify multiple. The flag name is
7884
optional, because args are interpreted
@@ -98,14 +104,15 @@
98104
ecks, invalidCasts, misplacedTypeAnnot
99105
ation, missingGetCssName, missingPrope
100106
rties, missingProvide, missingRequire,
101-
missingReturn, msgDescriptionsnewCheck
102-
Types, nonStandardJsDocs, reportUnknow
103-
nTypes, suspiciousCode, strictModuleDe
104-
pCheck, typeInvalidation, undefinedNam
105-
es, undefinedVars, unknownDefines,
106-
unnecessaryCasts, uselessCode,
107-
useOfGoogBase, visibility. '*' adds
108-
all supported.
107+
missingReturn, msgDescriptions,
108+
newCheckTypes, nonStandardJsDocs,
109+
reportUnknownTypes, suspiciousCode,
110+
strictModuleDepCheck, typeInvalidation
111+
, undefinedNames, undefinedVars,
112+
unknownDefines, unnecessaryCasts,
113+
unusedLocalVariables, unusedPrivateMem
114+
bers, uselessCode, useOfGoogBase,
115+
visibility. '*' adds all supported.
109116
--jscomp_off VAL : Turn off the named class of warnings.
110117
Options:accessControls, ambiguousFunct
111118
ionDecl, checkEventfulObjectDisposal,
@@ -119,14 +126,15 @@
119126
ecks, invalidCasts, misplacedTypeAnnot
120127
ation, missingGetCssName, missingPrope
121128
rties, missingProvide, missingRequire,
122-
missingReturn, msgDescriptionsnewCheck
123-
Types, nonStandardJsDocs, reportUnknow
124-
nTypes, suspiciousCode, strictModuleDe
125-
pCheck, typeInvalidation, undefinedNam
126-
es, undefinedVars, unknownDefines,
127-
unnecessaryCasts, uselessCode,
128-
useOfGoogBase, visibility. '*' adds
129-
all supported.
129+
missingReturn, msgDescriptions,
130+
newCheckTypes, nonStandardJsDocs,
131+
reportUnknownTypes, suspiciousCode,
132+
strictModuleDepCheck, typeInvalidation
133+
, undefinedNames, undefinedVars,
134+
unknownDefines, unnecessaryCasts,
135+
unusedLocalVariables, unusedPrivateMem
136+
bers, uselessCode, useOfGoogBase,
137+
visibility. '*' adds all supported.
130138
--jscomp_warning VAL : Make the named class of warnings a
131139
normal warning. Options:accessControls
132140
, ambiguousFunctionDecl, checkEventful
@@ -140,27 +148,36 @@
140148
ecks, invalidCasts, misplacedTypeAnnot
141149
ation, missingGetCssName, missingPrope
142150
rties, missingProvide, missingRequire,
143-
missingReturn, msgDescriptionsnewCheck
144-
Types, nonStandardJsDocs, reportUnknow
145-
nTypes, suspiciousCode, strictModuleDe
146-
pCheck, typeInvalidation, undefinedNam
147-
es, undefinedVars, unknownDefines,
148-
unnecessaryCasts, uselessCode,
149-
useOfGoogBase, visibility. '*' adds
150-
all supported.
151+
missingReturn, msgDescriptions,
152+
newCheckTypes, nonStandardJsDocs,
153+
reportUnknownTypes, suspiciousCode,
154+
strictModuleDepCheck, typeInvalidation
155+
, undefinedNames, undefinedVars,
156+
unknownDefines, unnecessaryCasts,
157+
unusedLocalVariables, unusedPrivateMem
158+
bers, uselessCode, useOfGoogBase,
159+
visibility. '*' adds all supported.
160+
--json_streams [NONE | IN | OUT | : Specifies whether standard input and
161+
BOTH] : output streams will be a JSON array
162+
of sources. Each source will be an
163+
object of the form {path: filename,
164+
src: file_contents, srcmap: srcmap_con
165+
tents }. Intended for use by stream-ba
166+
sed build systems such as gulpjs.
167+
Options: NONE, IN, OUT, BOTH.
168+
Defaults to NONE.
151169
--jszip VAL : The JavaScript zip filename. You may
152170
specify multiple.
153171
--language_in VAL : Sets what language spec that input
154-
sources conform. Options: ECMASCRIPT3
155-
(default), ECMASCRIPT5, ECMASCRIPT5_ST
156-
RICT, ECMASCRIPT6, ECMASCRIPT6_STRICT,
157-
ECMASCRIPT6_TYPED (experimental)
172+
sources conform. Options: ECMASCRIPT3,
173+
ECMASCRIPT5, ECMASCRIPT5_STRICT,
174+
ECMASCRIPT6 (default), ECMASCRIPT6_STR
175+
ICT, ECMASCRIPT6_TYPED (experimental)
158176
--language_out VAL : Sets what language spec the output
159-
should conform to. If omitted,
160-
defaults to the value of language_in.
161-
Options: ECMASCRIPT3, ECMASCRIPT5,
162-
ECMASCRIPT5_STRICT, ECMASCRIPT6_TYPED
163-
(experimental)
177+
should conform to. Options: ECMASCRIPT
178+
3 (default), ECMASCRIPT5, ECMASCRIPT5_
179+
STRICT, ECMASCRIPT6_TYPED (experimenta
180+
l)
164181
--logging_level VAL : The logging level (standard java.util.
165182
logging.Level values) for Compiler
166183
progress. Does not control errors or

default-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"compiler_url": "http://dl.google.com/closure-compiler/compiler-20151015.zip",
2+
"compiler_url": "http://dl.google.com/closure-compiler/compiler-20151216.zip",
33
"library_url": "https://github.com/google/closure-library/archive/5b25e65.zip",
44
"log_level": "info"
55
}

0 commit comments

Comments
 (0)