diff --git a/SampleApplications/WebApp/build.gradle b/SampleApplications/WebApp/build.gradle new file mode 100644 index 00000000..0d66ae47 --- /dev/null +++ b/SampleApplications/WebApp/build.gradle @@ -0,0 +1,44 @@ +plugins { + id 'org.jetbrains.kotlin.js' +} + + +repositories { + mavenCentral() + google() +} + + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-js" + + implementation project(":fints4k") + + implementation "org.jetbrains.kotlin-wrappers:kotlin-react:17.0.2-pre.293-kotlin-$kotlinVersion" + implementation "org.jetbrains.kotlin-wrappers:kotlin-react-dom:17.0.2-pre.293-kotlin-$kotlinVersion" + implementation "org.jetbrains.kotlin-wrappers:kotlin-styled:5.3.3-pre.293-kotlin-$kotlinVersion" + + testImplementation "org.jetbrains.kotlin:kotlin-test-js" +} + +kotlin { + js(IR) { + browser { + webpackTask { + cssSupport.enabled = true + } + + runTask { + cssSupport.enabled = true + } + + testTask { + useKarma { + useChromeHeadless() + webpackConfig.cssSupport.enabled = true + } + } + } + binaries.executable() + } +} \ No newline at end of file diff --git a/SampleApplications/WebApp/src/main/kotlin/main.kt b/SampleApplications/WebApp/src/main/kotlin/main.kt new file mode 100644 index 00000000..4542048a --- /dev/null +++ b/SampleApplications/WebApp/src/main/kotlin/main.kt @@ -0,0 +1,5 @@ +import kotlinx.browser.document + +fun main() { + document.write("Hello, world!") +} \ No newline at end of file diff --git a/SampleApplications/WebApp/src/main/resources/index.html b/SampleApplications/WebApp/src/main/resources/index.html new file mode 100644 index 00000000..e4bcb6d0 --- /dev/null +++ b/SampleApplications/WebApp/src/main/resources/index.html @@ -0,0 +1,11 @@ + + +
+ +