[K/JS] Introduce v2015 target
This commit is contained in:
@@ -336,7 +336,7 @@ public abstract interface class org/jetbrains/kotlin/gradle/dsl/KotlinJsOptions
|
||||
public abstract fun getSourceMapPrefix ()Ljava/lang/String;
|
||||
public abstract fun getTarget ()Ljava/lang/String;
|
||||
public abstract fun getTypedArrays ()Z
|
||||
public abstract fun getUseEsClasses ()Z
|
||||
public abstract fun getUseEsClasses ()Ljava/lang/Boolean;
|
||||
public abstract fun setFriendModulesDisabled (Z)V
|
||||
public abstract fun setMain (Ljava/lang/String;)V
|
||||
public abstract fun setMetaInfo (Z)V
|
||||
@@ -349,7 +349,7 @@ public abstract interface class org/jetbrains/kotlin/gradle/dsl/KotlinJsOptions
|
||||
public abstract fun setSourceMapPrefix (Ljava/lang/String;)V
|
||||
public abstract fun setTarget (Ljava/lang/String;)V
|
||||
public abstract fun setTypedArrays (Z)V
|
||||
public abstract fun setUseEsClasses (Z)V
|
||||
public abstract fun setUseEsClasses (Ljava/lang/Boolean;)V
|
||||
}
|
||||
|
||||
public final class org/jetbrains/kotlin/gradle/dsl/KotlinJsOptions$DefaultImpls {
|
||||
@@ -370,7 +370,7 @@ public final class org/jetbrains/kotlin/gradle/dsl/KotlinJsOptions$DefaultImpls
|
||||
public static fun getSuppressWarnings (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;)Z
|
||||
public static fun getTarget (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;)Ljava/lang/String;
|
||||
public static fun getTypedArrays (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;)Z
|
||||
public static fun getUseEsClasses (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;)Z
|
||||
public static fun getUseEsClasses (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;)Ljava/lang/Boolean;
|
||||
public static fun getUseK2 (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;)Z
|
||||
public static fun getVerbose (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;)Z
|
||||
public static fun setAllWarningsAsErrors (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Z)V
|
||||
@@ -390,7 +390,7 @@ public final class org/jetbrains/kotlin/gradle/dsl/KotlinJsOptions$DefaultImpls
|
||||
public static fun setSuppressWarnings (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Z)V
|
||||
public static fun setTarget (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Ljava/lang/String;)V
|
||||
public static fun setTypedArrays (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Z)V
|
||||
public static fun setUseEsClasses (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Z)V
|
||||
public static fun setUseEsClasses (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Ljava/lang/Boolean;)V
|
||||
public static fun setUseK2 (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Z)V
|
||||
public static fun setVerbose (Lorg/jetbrains/kotlin/gradle/dsl/KotlinJsOptions;Z)V
|
||||
}
|
||||
|
||||
+8
-6
@@ -38,12 +38,13 @@ interface KotlinJsCompilerOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommon
|
||||
val metaInfo: org.gradle.api.provider.Property<kotlin.Boolean>
|
||||
|
||||
/**
|
||||
* The kind of JS module generated by the compiler.
|
||||
* The kind of JS module generated by the compiler. ES modules are enabled by default in case of ES2015 target usage
|
||||
*
|
||||
* Possible values: "plain", "amd", "commonjs", "umd"
|
||||
*
|
||||
* Default value: JsModuleKind.MODULE_PLAIN
|
||||
* Default value: null
|
||||
*/
|
||||
@get:org.gradle.api.tasks.Optional
|
||||
@get:org.gradle.api.tasks.Input
|
||||
val moduleKind: org.gradle.api.provider.Property<org.jetbrains.kotlin.gradle.dsl.JsModuleKind>
|
||||
|
||||
@@ -107,9 +108,9 @@ interface KotlinJsCompilerOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommon
|
||||
/**
|
||||
* Generate JS files for the specified ECMA version.
|
||||
*
|
||||
* Possible values: "v5"
|
||||
* Possible values: "es5", "es2015"
|
||||
*
|
||||
* Default value: "v5"
|
||||
* Default value: "es5"
|
||||
*/
|
||||
@get:org.gradle.api.tasks.Input
|
||||
val target: org.gradle.api.provider.Property<kotlin.String>
|
||||
@@ -123,10 +124,11 @@ interface KotlinJsCompilerOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommon
|
||||
val typedArrays: org.gradle.api.provider.Property<kotlin.Boolean>
|
||||
|
||||
/**
|
||||
* Let generated JavaScript code use ES2015 classes.
|
||||
* Let generated JavaScript code use ES2015 classes. Enabled by default in case of ES2015 target usage
|
||||
*
|
||||
* Default value: false
|
||||
* Default value: null
|
||||
*/
|
||||
@get:org.gradle.api.tasks.Optional
|
||||
@get:org.gradle.api.tasks.Input
|
||||
val useEsClasses: org.gradle.api.provider.Property<kotlin.Boolean>
|
||||
}
|
||||
|
||||
+12
-12
@@ -51,19 +51,19 @@ interface KotlinJsOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions
|
||||
get() = options.metaInfo.get()
|
||||
set(value) = options.metaInfo.set(value)
|
||||
|
||||
private val kotlin.String.moduleKindCompilerOption get() = org.jetbrains.kotlin.gradle.dsl.JsModuleKind.fromKind(this)
|
||||
private val kotlin.String?.moduleKindCompilerOption get() = this?.let { org.jetbrains.kotlin.gradle.dsl.JsModuleKind.fromKind(it) }
|
||||
|
||||
private val org.jetbrains.kotlin.gradle.dsl.JsModuleKind.moduleKindKotlinOption get() = this.kind
|
||||
private val org.jetbrains.kotlin.gradle.dsl.JsModuleKind?.moduleKindKotlinOption get() = this?.kind
|
||||
|
||||
/**
|
||||
* The kind of JS module generated by the compiler.
|
||||
* The kind of JS module generated by the compiler. ES modules are enabled by default in case of ES2015 target usage
|
||||
*
|
||||
* Possible values: "plain", "amd", "commonjs", "umd"
|
||||
*
|
||||
* Default value: JsModuleKind.MODULE_PLAIN
|
||||
* Default value: null
|
||||
*/
|
||||
var moduleKind: kotlin.String
|
||||
get() = options.moduleKind.get().moduleKindKotlinOption
|
||||
var moduleKind: kotlin.String?
|
||||
get() = options.moduleKind.orNull.moduleKindKotlinOption
|
||||
set(value) = options.moduleKind.set(value.moduleKindCompilerOption)
|
||||
|
||||
/**
|
||||
@@ -136,9 +136,9 @@ interface KotlinJsOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions
|
||||
/**
|
||||
* Generate JS files for the specified ECMA version.
|
||||
*
|
||||
* Possible values: "v5"
|
||||
* Possible values: "es5", "es2015"
|
||||
*
|
||||
* Default value: "v5"
|
||||
* Default value: "es5"
|
||||
*/
|
||||
var target: kotlin.String
|
||||
get() = options.target.get()
|
||||
@@ -154,11 +154,11 @@ interface KotlinJsOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions
|
||||
set(value) = options.typedArrays.set(value)
|
||||
|
||||
/**
|
||||
* Let generated JavaScript code use ES2015 classes.
|
||||
* Let generated JavaScript code use ES2015 classes. Enabled by default in case of ES2015 target usage
|
||||
*
|
||||
* Default value: false
|
||||
* Default value: null
|
||||
*/
|
||||
var useEsClasses: kotlin.Boolean
|
||||
get() = options.useEsClasses.get()
|
||||
var useEsClasses: kotlin.Boolean?
|
||||
get() = options.useEsClasses.orNull
|
||||
set(value) = options.useEsClasses.set(value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user