summaryrefslogtreecommitdiff
path: root/sw-ui
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2021-09-07 16:39:16 +0200
committerJoffrey Bion <joffrey.bion@gmail.com>2021-09-07 16:39:16 +0200
commitf0b030f685f76e4dbacd2b1942e72ba18d60f6f2 (patch)
tree80715cd92b43c24532620fe6f3f1b810c4230c55 /sw-ui
parentWorkaround "process is not defined" due to blueprintjs bug (diff)
downloadseven-wonders-f0b030f685f76e4dbacd2b1942e72ba18d60f6f2.tar.gz
seven-wonders-f0b030f685f76e4dbacd2b1942e72ba18d60f6f2.tar.bz2
seven-wonders-f0b030f685f76e4dbacd2b1942e72ba18d60f6f2.zip
Cleanup kotlin wrapper dependencies
Diffstat (limited to 'sw-ui')
-rw-r--r--sw-ui/build.gradle.kts36
1 files changed, 7 insertions, 29 deletions
diff --git a/sw-ui/build.gradle.kts b/sw-ui/build.gradle.kts
index 46352f1b..fbe51d3e 100644
--- a/sw-ui/build.gradle.kts
+++ b/sw-ui/build.gradle.kts
@@ -4,8 +4,6 @@ plugins {
kotlin("js")
}
-val kotlinWrappersVersion = libs.versions.kotlin.wrappers.get()
-
kotlin {
js {
browser()
@@ -16,33 +14,13 @@ kotlin {
dependencies {
implementation(projects.swClient)
- val reactVersion = libs.versions.react.get()
- implementation("org.jetbrains.kotlin-wrappers:kotlin-react:$reactVersion-$kotlinWrappersVersion")
- implementation(npm("react", reactVersion))
- implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom:$reactVersion-$kotlinWrappersVersion")
- implementation(npm("react-dom", reactVersion))
-
- val reactReduxVersion = libs.versions.reactRedux.get()
- implementation("org.jetbrains.kotlin-wrappers:kotlin-react-redux:$reactReduxVersion-$kotlinWrappersVersion")
- implementation(npm("react-redux", reactReduxVersion))
- implementation(npm("redux", libs.versions.redux.get()))
-
- val reactRouterDomVersion = libs.versions.reactRouterDom.get()
- implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router-dom:$reactRouterDomVersion-$kotlinWrappersVersion")
- implementation(npm("react-router-dom", reactRouterDomVersion))
-
- val styledComponentsVersion = libs.versions.styledComponents.get()
- implementation("org.jetbrains.kotlin-wrappers:kotlin-styled:$styledComponentsVersion-$kotlinWrappersVersion")
- implementation(npm("styled-components", styledComponentsVersion))
- implementation(npm("inline-style-prefixer", "6.0.0")) // FIXME is this still needed
-
- val bpWrapperVersion = libs.versions.blueprintjs.wrapper.get()
- val bpCoreVersion = libs.versions.blueprintjs.core.get()
- val bpIconsVersion = libs.versions.blueprintjs.icons.get()
- implementation("org.hildan.blueprintjs:kotlin-blueprintjs-core:$bpCoreVersion-$bpWrapperVersion")
- implementation("org.hildan.blueprintjs:kotlin-blueprintjs-icons:$bpIconsVersion-$bpWrapperVersion")
- implementation(npm("@blueprintjs/core", bpCoreVersion))
- implementation(npm("@blueprintjs/icons", bpIconsVersion))
+ implementation(libs.kotlin.wrappers.react.base)
+ implementation(libs.kotlin.wrappers.react.dom)
+ implementation(libs.kotlin.wrappers.react.redux)
+ implementation(libs.kotlin.wrappers.react.router.dom)
+ implementation(libs.kotlin.wrappers.styled)
+ implementation(libs.kotlin.wrappers.blueprintjs.core)
+ implementation(libs.kotlin.wrappers.blueprintjs.icons)
}
}
test {
bgstack15