2021-03-18 19:11:45 +01:00
|
|
|
/*
|
|
|
|
* * Copyright (c) 2021 Shabinder Singh
|
|
|
|
* * This program is free software: you can redistribute it and/or modify
|
|
|
|
* * it under the terms of the GNU General Public License as published by
|
|
|
|
* * the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* * (at your option) any later version.
|
|
|
|
* *
|
|
|
|
* * This program is distributed in the hope that it will be useful,
|
|
|
|
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* * GNU General Public License for more details.
|
|
|
|
* *
|
|
|
|
* * You should have received a copy of the GNU General Public License
|
|
|
|
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2021-03-06 20:20:07 +01:00
|
|
|
plugins {
|
|
|
|
kotlin("js")
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "com.shabinder"
|
|
|
|
version = "0.1"
|
|
|
|
|
|
|
|
dependencies {
|
2021-09-30 19:16:43 +02:00
|
|
|
with(deps) {
|
|
|
|
implementation(koin.core)
|
|
|
|
implementation(decompose.dep)
|
|
|
|
implementation(ktor.client.js)
|
|
|
|
with(bundles) {
|
|
|
|
implementation(mviKotlin)
|
|
|
|
implementation(ktor)
|
|
|
|
implementation(kotlin.js.wrappers)
|
|
|
|
}
|
|
|
|
}
|
2021-03-07 20:58:47 +01:00
|
|
|
implementation(project(":common:root"))
|
|
|
|
implementation(project(":common:main"))
|
|
|
|
implementation(project(":common:list"))
|
|
|
|
implementation(project(":common:database"))
|
|
|
|
implementation(project(":common:data-models"))
|
2021-08-23 21:51:01 +02:00
|
|
|
implementation(project(":common:providers"))
|
2021-08-23 19:16:20 +02:00
|
|
|
implementation(project(":common:core-components"))
|
2021-03-07 20:58:47 +01:00
|
|
|
implementation(project(":common:dependency-injection"))
|
2021-09-30 19:16:43 +02:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-js:${deps.kotlin.kotlinGradlePlugin.get().versionConstraint.requiredVersion}")
|
2021-03-06 20:20:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2021-06-19 19:57:38 +02:00
|
|
|
js(IR) {
|
2021-03-12 21:18:03 +01:00
|
|
|
//useCommonJs()
|
2021-03-06 20:20:07 +01:00
|
|
|
browser {
|
|
|
|
webpackTask {
|
|
|
|
cssSupport.enabled = true
|
|
|
|
}
|
|
|
|
runTask {
|
|
|
|
cssSupport.enabled = true
|
|
|
|
}
|
|
|
|
testTask {
|
|
|
|
useKarma {
|
|
|
|
useChromeHeadless()
|
|
|
|
webpackConfig.cssSupport.enabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-19 19:57:38 +02:00
|
|
|
binaries.executable()
|
2021-03-06 20:20:07 +01:00
|
|
|
}
|
2021-10-10 23:45:40 +02:00
|
|
|
// WorkAround: https://youtrack.jetbrains.com/issue/KT-49124
|
|
|
|
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin> {
|
|
|
|
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().apply {
|
|
|
|
resolution("@webpack-cli/serve", "1.5.2")
|
|
|
|
}
|
|
|
|
}
|
2021-03-06 20:20:07 +01:00
|
|
|
}
|