-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions,org.jetbrains.kotlin.gradle.dsl.KotlinCommonToolOptions
public interface KotlinJsOptions implements KotlinCommonOptions
-
-
Method Summary
Modifier and Type Method Description abstract BooleangetFriendModulesDisabled()Disable internal declaration export Default value: false abstract UnitsetFriendModulesDisabled(Boolean friendModulesDisabled)Disable internal declaration export Default value: false abstract StringgetMain()Define whether the mainfunction should be called upon execution Possible values: "call", "noCall" Default value: "call"abstract UnitsetMain(String main)Define whether the mainfunction should be called upon execution Possible values: "call", "noCall" Default value: "call"abstract BooleangetMetaInfo()Generate .meta.js and .kjsm files with metadata. abstract UnitsetMetaInfo(Boolean metaInfo)Generate .meta.js and .kjsm files with metadata. abstract StringgetModuleKind()Kind of the JS module generated by the compiler Possible values: "plain", "amd", "commonjs", "umd" Default value: "plain" abstract UnitsetModuleKind(String moduleKind)Kind of the JS module generated by the compiler Possible values: "plain", "amd", "commonjs", "umd" Default value: "plain" abstract BooleangetNoStdlib()Don't automatically include the default Kotlin/JS stdlib into compilation dependencies Default value: true abstract UnitsetNoStdlib(Boolean noStdlib)Don't automatically include the default Kotlin/JS stdlib into compilation dependencies Default value: true abstract StringgetOutputFile()Destination *. abstract UnitsetOutputFile(String outputFile)Destination *. abstract BooleangetSourceMap()Generate source map Default value: false abstract UnitsetSourceMap(Boolean sourceMap)Generate source map Default value: false abstract StringgetSourceMapEmbedSources()Embed source files into source map Possible values: "never", "always", "inlining" Default value: null abstract UnitsetSourceMapEmbedSources(String sourceMapEmbedSources)Embed source files into source map Possible values: "never", "always", "inlining" Default value: null abstract StringgetSourceMapPrefix()Add the specified prefix to paths in the source map Default value: null abstract UnitsetSourceMapPrefix(String sourceMapPrefix)Add the specified prefix to paths in the source map Default value: null abstract StringgetTarget()Generate JS files for specific ECMA version Possible values: "v5" Default value: "v5" abstract UnitsetTarget(String target)Generate JS files for specific ECMA version Possible values: "v5" Default value: "v5" abstract BooleangetTypedArrays()Translate primitive arrays to JS typed arrays Default value: true abstract UnitsetTypedArrays(Boolean typedArrays)Translate primitive arrays to JS typed arrays Default value: true abstract StringgetApiVersion()Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1. abstract UnitsetApiVersion(String apiVersion)Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1. abstract StringgetLanguageVersion()Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1. abstract UnitsetLanguageVersion(String languageVersion)Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1. abstract BooleangetUseK2()Compile using experimental K2. abstract UnitsetUseK2(Boolean useK2)Compile using experimental K2. abstract BooleangetAllWarningsAsErrors()Report an error if there are any warnings Default value: false abstract UnitsetAllWarningsAsErrors(Boolean allWarningsAsErrors)Report an error if there are any warnings Default value: false abstract BooleangetSuppressWarnings()Generate no warnings Default value: false abstract UnitsetSuppressWarnings(Boolean suppressWarnings)Generate no warnings Default value: false abstract BooleangetVerbose()Enable verbose logging output Default value: false abstract UnitsetVerbose(Boolean verbose)Enable verbose logging output Default value: false abstract List<String>getFreeCompilerArgs()A list of additional compiler arguments Default value: emptyList() abstract UnitsetFreeCompilerArgs(List<String> freeCompilerArgs)A list of additional compiler arguments Default value: emptyList() -
-
Method Detail
-
getFriendModulesDisabled
abstract Boolean getFriendModulesDisabled()
Disable internal declaration export Default value: false
-
setFriendModulesDisabled
abstract Unit setFriendModulesDisabled(Boolean friendModulesDisabled)
Disable internal declaration export Default value: false
-
getMain
abstract String getMain()
Define whether the
mainfunction should be called upon execution Possible values: "call", "noCall" Default value: "call"
-
setMain
abstract Unit setMain(String main)
Define whether the
mainfunction should be called upon execution Possible values: "call", "noCall" Default value: "call"
-
getMetaInfo
abstract Boolean getMetaInfo()
Generate .meta.js and .kjsm files with metadata. Use to create a library Default value: true
-
setMetaInfo
abstract Unit setMetaInfo(Boolean metaInfo)
Generate .meta.js and .kjsm files with metadata. Use to create a library Default value: true
-
getModuleKind
abstract String getModuleKind()
Kind of the JS module generated by the compiler Possible values: "plain", "amd", "commonjs", "umd" Default value: "plain"
-
setModuleKind
abstract Unit setModuleKind(String moduleKind)
Kind of the JS module generated by the compiler Possible values: "plain", "amd", "commonjs", "umd" Default value: "plain"
-
getNoStdlib
abstract Boolean getNoStdlib()
Don't automatically include the default Kotlin/JS stdlib into compilation dependencies Default value: true
-
setNoStdlib
abstract Unit setNoStdlib(Boolean noStdlib)
Don't automatically include the default Kotlin/JS stdlib into compilation dependencies Default value: true
-
getOutputFile
abstract String getOutputFile()
Destination *.js file for the compilation result Default value: null
-
setOutputFile
abstract Unit setOutputFile(String outputFile)
Destination *.js file for the compilation result Default value: null
-
getSourceMap
abstract Boolean getSourceMap()
Generate source map Default value: false
-
setSourceMap
abstract Unit setSourceMap(Boolean sourceMap)
Generate source map Default value: false
-
getSourceMapEmbedSources
abstract String getSourceMapEmbedSources()
Embed source files into source map Possible values: "never", "always", "inlining" Default value: null
-
setSourceMapEmbedSources
abstract Unit setSourceMapEmbedSources(String sourceMapEmbedSources)
Embed source files into source map Possible values: "never", "always", "inlining" Default value: null
-
getSourceMapPrefix
abstract String getSourceMapPrefix()
Add the specified prefix to paths in the source map Default value: null
-
setSourceMapPrefix
abstract Unit setSourceMapPrefix(String sourceMapPrefix)
Add the specified prefix to paths in the source map Default value: null
-
getTarget
abstract String getTarget()
Generate JS files for specific ECMA version Possible values: "v5" Default value: "v5"
-
setTarget
abstract Unit setTarget(String target)
Generate JS files for specific ECMA version Possible values: "v5" Default value: "v5"
-
getTypedArrays
abstract Boolean getTypedArrays()
Translate primitive arrays to JS typed arrays Default value: true
-
setTypedArrays
abstract Unit setTypedArrays(Boolean typedArrays)
Translate primitive arrays to JS typed arrays Default value: true
-
getApiVersion
abstract String getApiVersion()
Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1.9 (experimental)" Default value: null
-
setApiVersion
abstract Unit setApiVersion(String apiVersion)
Allow using declarations only from the specified version of bundled libraries Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1.9 (experimental)" Default value: null
-
getLanguageVersion
abstract String getLanguageVersion()
Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1.9 (experimental)" Default value: null
-
setLanguageVersion
abstract Unit setLanguageVersion(String languageVersion)
Provide source compatibility with the specified version of Kotlin Possible values: "1.3 (deprecated)", "1.4 (deprecated)", "1.5", "1.6", "1.7", "1.8 (experimental)", "1.9 (experimental)" Default value: null
-
getUseK2
abstract Boolean getUseK2()
Compile using experimental K2. K2 is a new compiler pipeline, no compatibility guarantees are yet provided Default value: false
-
setUseK2
abstract Unit setUseK2(Boolean useK2)
Compile using experimental K2. K2 is a new compiler pipeline, no compatibility guarantees are yet provided Default value: false
-
getAllWarningsAsErrors
abstract Boolean getAllWarningsAsErrors()
Report an error if there are any warnings Default value: false
-
setAllWarningsAsErrors
abstract Unit setAllWarningsAsErrors(Boolean allWarningsAsErrors)
Report an error if there are any warnings Default value: false
-
getSuppressWarnings
abstract Boolean getSuppressWarnings()
Generate no warnings Default value: false
-
setSuppressWarnings
abstract Unit setSuppressWarnings(Boolean suppressWarnings)
Generate no warnings Default value: false
-
getVerbose
abstract Boolean getVerbose()
Enable verbose logging output Default value: false
-
setVerbose
abstract Unit setVerbose(Boolean verbose)
Enable verbose logging output Default value: false
-
getFreeCompilerArgs
abstract List<String> getFreeCompilerArgs()
A list of additional compiler arguments Default value: emptyList()
-
setFreeCompilerArgs
abstract Unit setFreeCompilerArgs(List<String> freeCompilerArgs)
A list of additional compiler arguments Default value: emptyList()
-
-
-
-