blob: f796f0366bd7c9bab0f5da8ca78bd952750a9c2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
script_path=`dirname $0`
compiler_path="${script_path}/../tools/closure_compiler"
error_types="accessControls ambiguousFunctionDecl checkRegExp checkTypes \
checkVars constantProperty deprecated es5Strict externsValidation \
fileoverviewTags globalThis internetExplorerChecks invalidCasts \
missingProperties nonStandardJsDocs strictModuleDepCheck \
typeInvalidation undefinedVars unknownDefines uselessCode visibility"
flags=""
for error in ${error_types}; do
flags="${flags} --jscomp_error=${error} "
done
java -jar ${compiler_path}/compiler.jar${flags} $@
|