mirror of
https://github.com/InsanusMokrassar/KotlinPublicationScriptsBuilder.git
synced 2024-11-22 00:03:57 +00:00
add and web target
This commit is contained in:
parent
741ee98e35
commit
aa1756724a
@ -15,6 +15,7 @@ allprojects {
|
||||
|
||||
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization.gradle"
|
||||
mppJavaProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJavaProject.gradle"
|
||||
mppJsProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJsProject.gradle"
|
||||
mppAndroidProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppAndroidProject.gradle"
|
||||
|
||||
defaultAndroidSettingsPresetPath = "${rootProject.projectDir.absolutePath}/defaultAndroidSettings.gradle"
|
||||
|
32
mppJsProject.gradle
Normal file
32
mppJsProject.gradle
Normal file
@ -0,0 +1,32 @@
|
||||
project.version = "$version" + System.getenv("additional_version")
|
||||
project.group = "$group"
|
||||
|
||||
// apply from: "$publishGradlePath"
|
||||
|
||||
kotlin {
|
||||
js (IR) {
|
||||
browser()
|
||||
nodejs()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
commonMain {
|
||||
dependencies {
|
||||
implementation kotlin('stdlib')
|
||||
api "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialisation_core_version"
|
||||
}
|
||||
}
|
||||
commonTest {
|
||||
dependencies {
|
||||
implementation kotlin('test-common')
|
||||
implementation kotlin('test-annotations-common')
|
||||
}
|
||||
}
|
||||
jsTest {
|
||||
dependencies {
|
||||
implementation kotlin('test-js')
|
||||
implementation kotlin('test-junit')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -9,7 +9,8 @@ rootProject.name = 'kmppscriptbuilder'
|
||||
|
||||
String[] includes = [
|
||||
":core",
|
||||
":desktop"
|
||||
":desktop",
|
||||
":web"
|
||||
]
|
||||
|
||||
|
||||
|
6
web/build.gradle
Normal file
6
web/build.gradle
Normal file
@ -0,0 +1,6 @@
|
||||
plugins {
|
||||
id "org.jetbrains.kotlin.multiplatform"
|
||||
id "org.jetbrains.kotlin.plugin.serialization"
|
||||
}
|
||||
|
||||
apply from: "$mppJsProjectPresetPath"
|
83
web/src/jsMain/resources/index.html
Normal file
83
web/src/jsMain/resources/index.html
Normal file
@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Kotlin Publication Scripts Builder</title>
|
||||
<!-- UIkit CSS -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.6.17/dist/css/uikit.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div uk-sticky="sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky; bottom: #transparent-sticky-navbar">
|
||||
<nav class="uk-navbar-container" uk-navbar>
|
||||
<div class="uk-navbar-left">
|
||||
<div class="uk-padding-small uk-text-lead">Kotlin Publication Scripts Builder</div>
|
||||
</div>
|
||||
<div class="uk-navbar-right">
|
||||
<ul class="uk-navbar-nav">
|
||||
<li uk-tooltip="title: Open file"><a href="#"><span uk-icon="icon: pull"></span></a></li><!--Open file-->
|
||||
<li uk-tooltip="title: Save file"><a href="#"><span uk-icon="icon: push"></span></a></li><!--Save file-->
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
<form class="uk-padding-small">
|
||||
<fieldset class="uk-fieldset">
|
||||
<legend class="uk-legend">Project type</legend>
|
||||
<div class="uk-padding-small">
|
||||
<ul class="uk-subnav uk-subnav-pill">
|
||||
<li id="mppProjectType" class="uk-active"><a href="#">Multiplatform</a></li>
|
||||
<li id="jvmProjectType"><a href="#">JVM</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<legend class="uk-legend">Licenses</legend>
|
||||
<div class="uk-padding-small">
|
||||
<div class="uk-margin uk-width-1-1">
|
||||
<input id="searchFilterInput" class="uk-input uk-width-expand" type="text" placeholder="License search filter">
|
||||
</div>
|
||||
<button class="uk-button uk-button-primary">Add empty license</button>
|
||||
</div>
|
||||
|
||||
<legend class="uk-legend">Project information</legend>
|
||||
|
||||
<div class="uk-padding-small">
|
||||
<div class="uk-margin uk-width-1-1">
|
||||
<label class="uk-form-label" for="projectNameInput">Public project name</label>
|
||||
<input id="projectNameInput" class="uk-input uk-width-expand" type="text" placeholder="${project.name}">
|
||||
</div>
|
||||
<div class="uk-margin uk-width-1-1">
|
||||
<label class="uk-form-label" for="projectDescriptionInput">Public project description</label>
|
||||
<input id="projectDescriptionInput" class="uk-input uk-width-expand" type="text" placeholder="${project.name}">
|
||||
</div>
|
||||
<div class="uk-margin uk-width-1-1">
|
||||
<label class="uk-form-label" for="projectUrlInput">Public project URL</label>
|
||||
<input id="projectUrlInput" class="uk-input uk-width-expand" type="text" placeholder="Type url to github or other source with readme">
|
||||
</div>
|
||||
<div class="uk-margin uk-width-1-1">
|
||||
<label class="uk-form-label" for="projectVCSUrlInput">Public project VCS URL (with .git)</label>
|
||||
<input id="projectVCSUrlInput" class="uk-input uk-width-expand" type="text" placeholder="Type url to github .git file">
|
||||
</div>
|
||||
|
||||
<div class="uk-margin">
|
||||
<label><input id="includeGpgSignToggle" class="uk-checkbox" type="checkbox" checked> Include GPG Signing</label>
|
||||
</div>
|
||||
<div class="uk-margin">
|
||||
<label><input id="includeMavenCentralTargetRepoToggle" class="uk-checkbox" type="checkbox"> Include publication to MavenCentral</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<legend class="uk-legend">Developers info</legend>
|
||||
<div class="uk-padding-small">
|
||||
<button class="uk-button uk-button-primary">Add developer</button>
|
||||
</div>
|
||||
|
||||
<legend class="uk-legend">Repositories info</legend>
|
||||
<div class="uk-padding-small">
|
||||
<button class="uk-button uk-button-primary">Add repository</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- UIkit JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/uikit@3.6.17/dist/js/uikit.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/uikit@3.6.17/dist/js/uikit-icons.min.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user