summaryrefslogtreecommitdiff
path: root/build.gradle.kts
blob: 0844de88bdd5de3805c32e7f85856a5e2184646b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
plugins {
    kotlin("js") version "1.7.10"
}

allprojects {
    apply(plugin = "org.jetbrains.kotlin.js")
    repositories {
        mavenCentral()
    }

    kotlin {
        sourceSets.all {
            languageSettings.optIn("kotlin.ExperimentalStdlibApi")
            languageSettings.optIn("kotlin.RequiresOptIn")
        }
        js(IR) {
            browser {
                commonWebpackConfig {
                    sourceMaps = true
                    cssSupport.enabled = true
                }
            }
            binaries.executable()
        }
    }

    afterEvaluate {
        rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
            versions.webpackCli.version = "4.10.0"
        }
    }

    dependencies {
        implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:1.0.0-pre.376"))
        api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
        api("org.jetbrains.kotlin-wrappers:kotlin-styled")
     //   implementation(npm("prop-types", "^15.6.2"))
    }
}
group = "moe.nea"
version = "0.0.1"