summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-08-26 14:56:23 +0200
committernea <romangraef@gmail.com>2022-08-26 14:56:23 +0200
commit176e37844c17eaabb5c9da0f9c23237df9c0b5a8 (patch)
tree2c7d485355eed738ce1c30b03b7424e9f4a9db48
parentb87a65229ad9c7d09fd837b95e9e03624842669b (diff)
downloadneamoe-176e37844c17eaabb5c9da0f9c23237df9c0b5a8.tar.gz
neamoe-176e37844c17eaabb5c9da0f9c23237df9c0b5a8.tar.bz2
neamoe-176e37844c17eaabb5c9da0f9c23237df9c0b5a8.zip
idk make it maveny
-rw-r--r--build.gradle.kts64
-rw-r--r--example/build.gradle.kts28
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/Colored.kt (renamed from src/main/kotlin/moe/nea89/website/Colored.kt)0
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/Command.kt (renamed from src/main/kotlin/moe/nea89/website/Command.kt)0
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/KConsole.kt (renamed from src/main/kotlin/moe/nea89/website/KConsole.kt)0
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/KFiles.kt (renamed from src/main/kotlin/moe/nea89/website/KFiles.kt)0
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/ScrollIntoViewOptions.kt (renamed from src/main/kotlin/moe/nea89/website/ScrollIntoViewOptions.kt)0
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/ShellExecutionContext.kt (renamed from src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt)0
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/Styles.kt (renamed from src/main/kotlin/moe/nea89/website/Styles.kt)0
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/util.kt (renamed from src/main/kotlin/moe/nea89/website/util.kt)0
10 files changed, 60 insertions, 32 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 0844de8..b83f6d8 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,41 +1,47 @@
plugins {
- kotlin("js") version "1.7.10"
+ kotlin("multiplatform") version "1.7.10"
+ `maven-publish`
}
-allprojects {
- apply(plugin = "org.jetbrains.kotlin.js")
- repositories {
- mavenCentral()
- }
+repositories {
+ mavenCentral()
+}
+group = "moe.nea"
+version = "0.0.1"
- kotlin {
- sourceSets.all {
- languageSettings.optIn("kotlin.ExperimentalStdlibApi")
- languageSettings.optIn("kotlin.RequiresOptIn")
- }
- 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()
}
-
- afterEvaluate {
- rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
- versions.webpackCli.version = "4.10.0"
+ sourceSets {
+ named("jsMain") {
+ dependencies {
+ api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
+ api("org.jetbrains.kotlin-wrappers:kotlin-styled:5.3.5-pre.376")
+ }
}
}
+}
+
- 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"))
+publishing {
+ repositories {
+ mavenLocal()
+ }
+ publications {
+ create<MavenPublication>("library") {
+ from(components["kotlin"])
+ }
}
}
-group = "moe.nea"
-version = "0.0.1" \ No newline at end of file
+
diff --git a/example/build.gradle.kts b/example/build.gradle.kts
index 46f4a6d..2efa08e 100644
--- a/example/build.gradle.kts
+++ b/example/build.gradle.kts
@@ -1,7 +1,29 @@
+plugins {
+ kotlin("js")
+}
-dependencies {
- implementation(npm("@fontsource/comic-mono", "^4.5.0"))
- implementation(rootProject)
+repositories {
+ mavenCentral()
}
+kotlin {
+ sourceSets.all {
+ languageSettings.optIn("kotlin.ExperimentalStdlibApi")
+ languageSettings.optIn("kotlin.RequiresOptIn")
+ }
+ js(IR) {
+ browser {
+ commonWebpackConfig {
+ sourceMaps = true
+ cssSupport.enabled = true
+ }
+ }
+ binaries.executable()
+ }
+}
+
+dependencies {
+ implementation(npm("@fontsource/comic-mono", "^4.5.0"))
+ implementation(rootProject)
+} \ No newline at end of file
diff --git a/src/main/kotlin/moe/nea89/website/Colored.kt b/src/jsMain/kotlin/moe/nea89/website/Colored.kt
index 9918c85..9918c85 100644
--- a/src/main/kotlin/moe/nea89/website/Colored.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/Colored.kt
diff --git a/src/main/kotlin/moe/nea89/website/Command.kt b/src/jsMain/kotlin/moe/nea89/website/Command.kt
index b8e4675..b8e4675 100644
--- a/src/main/kotlin/moe/nea89/website/Command.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/Command.kt
diff --git a/src/main/kotlin/moe/nea89/website/KConsole.kt b/src/jsMain/kotlin/moe/nea89/website/KConsole.kt
index 4a51219..4a51219 100644
--- a/src/main/kotlin/moe/nea89/website/KConsole.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/KConsole.kt
diff --git a/src/main/kotlin/moe/nea89/website/KFiles.kt b/src/jsMain/kotlin/moe/nea89/website/KFiles.kt
index aad3036..aad3036 100644
--- a/src/main/kotlin/moe/nea89/website/KFiles.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/KFiles.kt
diff --git a/src/main/kotlin/moe/nea89/website/ScrollIntoViewOptions.kt b/src/jsMain/kotlin/moe/nea89/website/ScrollIntoViewOptions.kt
index aab14e2..aab14e2 100644
--- a/src/main/kotlin/moe/nea89/website/ScrollIntoViewOptions.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/ScrollIntoViewOptions.kt
diff --git a/src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt b/src/jsMain/kotlin/moe/nea89/website/ShellExecutionContext.kt
index bd72421..bd72421 100644
--- a/src/main/kotlin/moe/nea89/website/ShellExecutionContext.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/ShellExecutionContext.kt
diff --git a/src/main/kotlin/moe/nea89/website/Styles.kt b/src/jsMain/kotlin/moe/nea89/website/Styles.kt
index e1470d7..e1470d7 100644
--- a/src/main/kotlin/moe/nea89/website/Styles.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/Styles.kt
diff --git a/src/main/kotlin/moe/nea89/website/util.kt b/src/jsMain/kotlin/moe/nea89/website/util.kt
index 47c7843..47c7843 100644
--- a/src/main/kotlin/moe/nea89/website/util.kt
+++ b/src/jsMain/kotlin/moe/nea89/website/util.kt