Skip to content

Commit

Permalink
Merge pull request #1 from m3dev/dev-vanquish
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish authored Jun 15, 2024
2 parents b337d3e + 4656cfb commit f2cc1c5
Show file tree
Hide file tree
Showing 14 changed files with 3,594 additions and 13 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: torisetsu
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
distribution: 'adopt'
- name: grant execute permission for gradlew
run: chmod +x gradlew
- name: build
run: |
./gradlew build
- uses: actions/checkout@v4
- name: Check file existence
id: check_files
working-directory: torisetsu/build/dist/js/productionExecutable
uses: andstor/file-existence-action@v3
with:
files: "index.html, torisetsu.js"
- name: File exists
if: steps.check_files.outputs.files_exists == 'true'
run: echo All files exists!
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: torisetsu
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
distribution: 'adopt'
- name: grant execute permission for gradlew
run: chmod +x gradlew
- name: build
run: |
./gradlew build
- name: deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: github-pages
FOLDER: torisetsu/build/dist/js/productionExecutable
CLEAN: true
33 changes: 20 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.log
*.class
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.iml

.gradle
.mtj.tmp/

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

/local.properties
/.idea
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
build/
/captures
.externalNativeBuild
.cxx
7 changes: 7 additions & 0 deletions torisetsu/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.iml
.gradle
.idea
.kotlin
build/
local.properties
kotlin-js-store/yarn.lock
44 changes: 44 additions & 0 deletions torisetsu/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
plugins {
kotlin("multiplatform")
kotlin("plugin.compose")
id("org.jetbrains.compose")
}

group = "me.user"
version = "1.0"

repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}


kotlin {
js(IR) {
browser {
testTask {
testLogging.showStandardStreams = true
useKarma {
useChromeHeadless()
useFirefox()
}
}
}
binaries.executable()
}
sourceSets {
val jsMain by getting {
dependencies {
implementation(compose.web.core)
implementation(compose.runtime)
}
}
val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
}
}
}
}

6 changes: 6 additions & 0 deletions torisetsu/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kotlin.code.style=official
kotlin.js.webpack.major.version=4
kotlin.version=2.0.0
compose.version=1.6.10
org.gradle.configuration-cache=true
org.gradle.caching=true
7 changes: 7 additions & 0 deletions torisetsu/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit f2cc1c5

Please sign in to comment.