summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-08-20 15:48:04 +0200
committernea <romangraef@gmail.com>2022-08-20 15:48:04 +0200
commit6207fd482a685527fda286e0df5d4fa87aa85149 (patch)
tree497bc3aa56286ce29224ae83382396ee69462e82 /build.gradle.kts
parent893ece6b2f02329d460538311f572cb5b1936d3f (diff)
downloadneamoe-6207fd482a685527fda286e0df5d4fa87aa85149.tar.gz
neamoe-6207fd482a685527fda286e0df5d4fa87aa85149.tar.bz2
neamoe-6207fd482a685527fda286e0df5d4fa87aa85149.zip
subprojectification
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts58
1 files changed, 28 insertions, 30 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index f6ef050..af77441 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,45 +1,43 @@
plugins {
kotlin("js") version "1.6.0"
- kotlin("plugin.serialization") version "1.6.0"
id("com.github.node-gradle.node") version "3.1.1"
}
-repositories {
- mavenCentral()
-}
-
-kotlin {
- sourceSets.all {
- languageSettings.optIn("kotlin.ExperimentalStdlibApi")
- languageSettings.optIn("kotlin.RequiresOptIn")
+allprojects {
+ apply(plugin = "org.jetbrains.kotlin.js")
+ repositories {
+ mavenCentral()
}
- js(IR) {
- browser {
- commonWebpackConfig {
- sourceMaps = true
- cssSupport.enabled = true
+
+ kotlin {
+ sourceSets.all {
+ languageSettings.optIn("kotlin.ExperimentalStdlibApi")
+ languageSettings.optIn("kotlin.RequiresOptIn")
+ }
+ js(IR) {
+ browser {
+ commonWebpackConfig {
+ sourceMaps = true
+ cssSupport.enabled = true
+ }
}
+ binaries.executable()
}
- binaries.executable()
}
-}
-val processResources by tasks.getting(Copy::class)
+ afterEvaluate {
+ rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
+ versions.webpackCli.version = "4.10.0"
+ }
+ }
-dependencies {
- implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-RC")
+ dependencies {
+ implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-RC")
- implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:0.0.1-pre.256-kotlin-1.5.31"))
- implementation("org.jetbrains.kotlin-wrappers:kotlin-styled")
- implementation(npm("@fontsource/comic-mono", "^4.5.0"))
- implementation(npm("prop-types", "^15.6.2"))
-}
-
-afterEvaluate {
- rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
- versions.webpackCli.version="4.10.0"
+ implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:0.0.1-pre.256-kotlin-1.5.31"))
+ implementation("org.jetbrains.kotlin-wrappers:kotlin-styled")
+ // implementation(npm("prop-types", "^15.6.2"))
}
}
-
group = "moe.nea"
-version = "1.0-SNAPSHOT" \ No newline at end of file
+version = "0.0.1" \ No newline at end of file