117 lines
2.8 KiB
Plaintext
117 lines
2.8 KiB
Plaintext
usage: google-closure-compiler-js {OPTIONS} [FILES]
|
|
|
|
Compile FILES with google-closure-compiler-js.
|
|
|
|
If FILES or --jsCode is not given, read from stdin.
|
|
|
|
OPTIONS are:
|
|
|
|
-h --help
|
|
|
|
Show this message.
|
|
|
|
-v --version
|
|
|
|
Print the version number.
|
|
|
|
--angularPass (default: false)
|
|
|
|
Generate $inject properties for AngularJS for functions annotated with
|
|
@ngInject
|
|
|
|
--applyInputSourceMaps (default: true)
|
|
|
|
Compose input source maps into output source map
|
|
|
|
--assumeFunctionWrapper (default: false)
|
|
|
|
Enable additional optimizations based on the assumption that the output will
|
|
be wrapped with a function wrapper. This flag is used to indicate that
|
|
"global" declarations will not actually be global but instead isolated to the
|
|
compilation unit. This enables additional optimizations.
|
|
|
|
--checksOnly (default: false)
|
|
|
|
Don't generate output. Run checks, but no optimization passes.
|
|
|
|
--compilationLevel (default: SIMPLE)
|
|
|
|
Specifies the compilation level to use.
|
|
Options: WHITESPACE_ONLY, SIMPLE, ADVANCED
|
|
|
|
--dartPass (default: false)
|
|
|
|
--defines (default: null)
|
|
|
|
Overrides the value of variables annotated with `@define`, an object mapping
|
|
names to primitive types.
|
|
|
|
--env (default: BROWSER)
|
|
|
|
Determines the set of builtin externs to load.
|
|
Options: BROWSER, CUSTOM
|
|
|
|
--exportLocalPropertyDefinitions (default: false)
|
|
|
|
--externs
|
|
|
|
Additional paths to externs to use for this compile.
|
|
|
|
--generateExports (default: false)
|
|
|
|
Generates export code for those marked with @export.
|
|
|
|
--jsCode
|
|
|
|
Specifies the paths to source code to compile.
|
|
|
|
--languageIn (default: ES6)
|
|
|
|
Sets what language spec that input sources conform to.
|
|
|
|
--languageOut (default: ES5)
|
|
|
|
Sets what language spec the output should conform to.
|
|
|
|
--newTypeInf (default: false)
|
|
|
|
Checks for type errors using the new type inference algorithm.
|
|
|
|
--outputWrapper (default: null)
|
|
|
|
Interpolate output into this string, replacing the token `%output%`
|
|
|
|
--polymerVersion (default: null)
|
|
|
|
Specify the Polymer version pass to use.
|
|
|
|
--preserveTypeAnnotations (default: false)
|
|
|
|
--processCommonJsModules (default: false)
|
|
|
|
Process CommonJS modules to a concatenable form, i.e., support `require`
|
|
statements.
|
|
|
|
--renamePrefixNamespace
|
|
|
|
Specifies the name of an object that will be used to store all non-extern globals.
|
|
|
|
--rewritePolyfills (default: false)
|
|
|
|
Rewrite ES6 library calls to use polyfills provided by the compiler's runtime.
|
|
|
|
--useTypesForOptimization (default: false)
|
|
|
|
Enable or disable the optimizations based on available type information.
|
|
Inaccurate type annotations may result in incorrect results.
|
|
|
|
--warningLevel (default: DEFAULT)
|
|
|
|
Specifies the warning level to use.
|
|
Options: QUIET, DEFAULT, VERBOSE
|
|
|
|
--createSourceMap (default: false)
|
|
|
|
Generates a source map mapping the generated source file back to its original
|
|
sources.
|