File tree Expand file tree Collapse file tree 4 files changed +41
-48
lines changed Expand file tree Collapse file tree 4 files changed +41
-48
lines changed Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
2+ import org.jetbrains.kotlin.gradle.dsl.KotlinJsProjectExtension
3+ import org.jetbrains.kotlin.gradle.plugin.KotlinJsPluginWrapper
4+
15plugins {
26 kotlin(" js" ) apply false
37}
48
59subprojects {
10+ group = " io.github.samgarasx"
11+ version = if (! project.name.contains(" samples" )) {
12+ version(project.name)
13+ } else " 1.0-SNAPSHOT"
14+
615 repositories {
716 mavenCentral()
817 maven(" https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven" )
918 maven(" https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers" )
1019 }
1120
12- configureKotlinJs()
21+ plugins.withType<KotlinJsPluginWrapper > {
22+ extensions.configure<KotlinJsProjectExtension > {
23+ js {
24+ if (project.name.contains(" samples" )) {
25+ browser {
26+ commonWebpackConfig {
27+ cssSupport.enabled = true
28+ }
29+ }
30+
31+ binaries.executable()
32+ } else browser()
33+ }
34+ }
35+
36+ tasks.withType<KotlinJsCompile >().configureEach {
37+ kotlinOptions {
38+ if (name == " compileKotlinJs" ) {
39+ sourceMapEmbedSources = " always"
40+ sourceMap = true
41+ } else {
42+ sourceMap = false
43+ }
44+ }
45+ }
46+ }
1347}
1448
1549tasks.wrapper {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ fun Project.npmVersion(name: String) = version("kotlin-$name")
77 .replaceAfter(" -" , " " )
88 .removeSuffix(" -" )
99
10- internal fun Project.version (target : String ) = property(" ${target} .version" ) as String
10+ fun Project.version (target : String ) = property(" ${target} .version" ) as String
Original file line number Diff line number Diff line change 1- group =io.github.samgarasx
2- version =1.0-SNAPSHOT
3-
41kotlin.code.style =official
52
63kotlin.version =1.4.32
@@ -9,8 +6,8 @@ kotlin-react.version=17.0.2-pre.153
96kotlin-react-dom.version =17.0.2-pre.153
107kotlin-styled.version =5.2.3-pre.153
118
12- kotlin-antd.version =4.8.6-pre.9
13- kotlin-moment.version =2.27.0-pre.7
14- kotlin-react-intl.version =5.8.1-pre.7
15- kotlin-react-responsive.version =8.1.0-pre.7
16- kotlin-uikit.version =3.5.7-pre.6
9+ kotlin-antd.version =4.8.6-pre.10
10+ kotlin-moment.version =2.27.0-pre.8
11+ kotlin-react-intl.version =5.8.1-pre.8
12+ kotlin-react-responsive.version =8.1.0-pre.8
13+ kotlin-uikit.version =3.5.7-pre.7
You can’t perform that action at this time.
0 commit comments