-
- 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 -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions
getApiVersion, getLanguageVersion, getUseK2, setApiVersion, setLanguageVersion, setUseK2 -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonToolOptions
getAllWarningsAsErrors, getFreeCompilerArgs, getSuppressWarnings, getVerbose, setAllWarningsAsErrors, setFreeCompilerArgs, setSuppressWarnings, setVerbose -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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
-
-
-
-