Skip to content

Commit 203b250

Browse files
committed
refactor : automatic WebApp build
1 parent 2de4a5b commit 203b250

File tree

5 files changed

+9
-23
lines changed

5 files changed

+9
-23
lines changed

.run/webApp.run.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

settings.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ plugins {
3434

3535
include(":composeApp")
3636
include(":server")
37-
include(":shared")
37+
include(":shared")
38+
include(":webApp")
39+
include(":iosApp")

shared/src/commonMain/kotlin/org/patchnote/patchnote/Greeting.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class Greeting {
99
private val platform = getPlatform()
1010

1111
fun greet(): String {
12-
return "Hello, ${platform.name}!"
12+
return "테스테스트 You, ${platform.name}!"
1313
}
1414
}

webApp/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "Web application that uses Kotlin Multiplatform Library",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
8-
"build": "vite build",
9-
"preview": "vite preview"
10-
},
7+
"build:shared": "cd .. && ./gradlew :shared:build",
8+
"dev": "npm run build:shared && vite",
9+
"build": "npm run build:shared && vite build"
10+
},
1111
"dependencies": {
1212
"react": "^18.2.0",
1313
"react-dom": "^18.2.0",

webApp/src/components/Greeting/Greeting.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function Greeting() {
2828
return (
2929
<div className="greeting-container">
3030
<button onClick={handleClick} className="greeting-button">
31-
Click me!
31+
터치하세요
3232
</button>
3333

3434
{isVisible && (

0 commit comments

Comments
 (0)