Class ClosureConfig
java.lang.Object
com.sevenprinciplesmobility.maven.minify.common.ClosureConfig
Google Closure Compiler configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionClosureConfig
(com.google.javascript.jscomp.CompilerOptions.LanguageMode languageIn, com.google.javascript.jscomp.CompilerOptions.LanguageMode languageOut, com.google.javascript.jscomp.CompilerOptions.Environment environment, com.google.javascript.jscomp.CompilationLevel compilationLevel, com.google.javascript.jscomp.DependencyOptions dependencyOptions, List<com.google.javascript.jscomp.SourceFile> externs, boolean createSourceMap, Map<com.google.javascript.jscomp.DiagnosticGroup, com.google.javascript.jscomp.CheckLevel> warningLevels, boolean angularPass, List<String> extraAnnotations, Map<String, String> defineReplacements) Init Closure Compiler values. -
Method Summary
Modifier and TypeMethodDescriptionGets the angularPass.Gets the colorizeErrorOutput.com.google.javascript.jscomp.CompilationLevel
Gets the compilationLevel.Gets the defineReplacements.com.google.javascript.jscomp.DependencyOptions
Gets the dependencyOptions.com.google.javascript.jscomp.CompilerOptions.Environment
Gets the environment.List
<com.google.javascript.jscomp.SourceFile> Gets the externs.Gets the extraAnnotations.com.google.javascript.jscomp.CompilerOptions.LanguageMode
Gets the languageIn.com.google.javascript.jscomp.CompilerOptions.LanguageMode
Gets the languageOut.com.google.javascript.jscomp.SourceMap.Format
Gets the sourceMapFormat.Map
<com.google.javascript.jscomp.DiagnosticGroup, com.google.javascript.jscomp.CheckLevel> Gets the warningLevels.
-
Constructor Details
-
ClosureConfig
public ClosureConfig(com.google.javascript.jscomp.CompilerOptions.LanguageMode languageIn, com.google.javascript.jscomp.CompilerOptions.LanguageMode languageOut, com.google.javascript.jscomp.CompilerOptions.Environment environment, com.google.javascript.jscomp.CompilationLevel compilationLevel, com.google.javascript.jscomp.DependencyOptions dependencyOptions, List<com.google.javascript.jscomp.SourceFile> externs, boolean createSourceMap, Map<com.google.javascript.jscomp.DiagnosticGroup, com.google.javascript.jscomp.CheckLevel> warningLevels, boolean angularPass, List<String> extraAnnotations, Map<String, String> defineReplacements) Init Closure Compiler values.- Parameters:
languageIn
- the version of ECMAScript used to report errors in the codelanguageOut
- the version of ECMAScript the code will be returned inenvironment
- the set of builtin externs to loadcompilationLevel
- the degree of compression and optimization to apply to JavaScriptdependencyOptions
- options for how to manage dependencies between input filesexterns
- preserve symbols that are defined outside of the code you are compilingcreateSourceMap
- create a source map for the minifed/combined production fileswarningLevels
- a map of warnings to enable or disable in the compilerangularPass
- use@ngInject
annotation to generate Angular injectionsextraAnnotations
- make extra annotations known to the closure enginedefineReplacements
- replacements for@defines
-
-
Method Details
-
getLanguageIn
public com.google.javascript.jscomp.CompilerOptions.LanguageMode getLanguageIn()Gets the languageIn.- Returns:
- the languageIn
-
getLanguageOut
public com.google.javascript.jscomp.CompilerOptions.LanguageMode getLanguageOut()Gets the languageOut.- Returns:
- the languageOut
-
getEnvironment
public com.google.javascript.jscomp.CompilerOptions.Environment getEnvironment()Gets the environment.- Returns:
- the environment
-
getCompilationLevel
public com.google.javascript.jscomp.CompilationLevel getCompilationLevel()Gets the compilationLevel.- Returns:
- the compilationLevel
-
getDependencyOptions
public com.google.javascript.jscomp.DependencyOptions getDependencyOptions()Gets the dependencyOptions.- Returns:
- the dependencyOptions
-
getExterns
Gets the externs.- Returns:
- the externs
-
getSourceMapFormat
public com.google.javascript.jscomp.SourceMap.Format getSourceMapFormat()Gets the sourceMapFormat.- Returns:
- the sourceMapFormat
-
getWarningLevels
public Map<com.google.javascript.jscomp.DiagnosticGroup,com.google.javascript.jscomp.CheckLevel> getWarningLevels()Gets the warningLevels.- Returns:
- the warningLevels
-
getColorizeErrorOutput
Gets the colorizeErrorOutput.- Returns:
- the colorizeErrorOutput
-
getAngularPass
Gets the angularPass.- Returns:
- the angularPass
-
getExtraAnnotations
Gets the extraAnnotations.- Returns:
- the extraAnnotations
-
getDefineReplacements
Gets the defineReplacements.- Returns:
- the defineReplacements
-