Skip to content

Commit affc95f

Browse files
committed
Improving API.
(I guess I leave it like this for now)
1 parent 8ca36a5 commit affc95f

File tree

213 files changed

+4955
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+4955
-335
lines changed

.github/workflows/java-17-builds.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Java 17 CI (MC 1.17-1.20.4)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'dev/**'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
- name: validate gradle wrapper
19+
uses: gradle/wrapper-validation-action@v2
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '21'
24+
distribution: 'adopt'
25+
cache: gradle
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
- name: Build Skript and run test scripts
29+
run: ./gradlew clean skriptTestJava17
30+
- name: Upload Nightly Build
31+
uses: actions/upload-artifact@v4
32+
if: success()
33+
with:
34+
name: skript-nightly
35+
path: build/libs/*

.github/workflows/java-21-builds.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Java 21 CI (MC 1.20.6+)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'dev/**'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
- name: validate gradle wrapper
19+
uses: gradle/wrapper-validation-action@v2
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '21'
24+
distribution: 'adopt'
25+
cache: gradle
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
- name: Build Skript and run test scripts
29+
run: ./gradlew clean skriptTestJava21
30+
- name: Upload Nightly Build
31+
uses: actions/upload-artifact@v4
32+
if: success()
33+
with:
34+
name: skript-nightly
35+
path: build/libs/*

.github/workflows/java-8-builds.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Java 8 CI (MC 1.13-1.16)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'dev/**'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
- name: validate gradle wrapper
19+
uses: gradle/wrapper-validation-action@v2
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '21'
24+
distribution: 'adopt'
25+
cache: gradle
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
- name: Build Skript and run test scripts
29+
run: ./gradlew clean skriptTestJava8
30+
- name: Upload Nightly Build
31+
uses: actions/upload-artifact@v4
32+
if: success()
33+
with:
34+
name: skript-nightly
35+
path: build/libs/*

.github/workflows/junit-17-builds.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: JUnit (MC 1.17-1.20.4)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'dev/**'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
- name: validate gradle wrapper
19+
uses: gradle/wrapper-validation-action@v2
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '21'
24+
distribution: 'adopt'
25+
cache: gradle
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
- name: Build Skript and run JUnit
29+
run: ./gradlew clean JUnitJava17

.github/workflows/junit-8-builds.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: JUnit (MC 1.13-1.16)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'dev/**'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
- name: validate gradle wrapper
19+
uses: gradle/wrapper-validation-action@v2
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '21'
24+
distribution: 'adopt'
25+
cache: gradle
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
- name: Build Skript and run JUnit
29+
run: ./gradlew clean JUnitJava8

build.gradle

+7-4
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,15 @@ publishing {
147147
}
148148

149149
repositories {
150+
mavenLocal();
151+
150152
maven {
151-
name = 'repo'
152-
url = 'https://repo.skriptlang.org/releases'
153+
url = 'https://maven.pkg.github.com/XyperCode/base-skript'
154+
name = "BaseSkriptPackages"
155+
153156
credentials {
154-
username = System.getenv('MAVEN_USERNAME')
155-
password = System.getenv('MAVEN_PASSWORD')
157+
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
158+
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
156159
}
157160
}
158161
}

docs-templates/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# BaseSkript Documentation Templates
2+
3+
When generating final result, each HTML file is surrounded by template.html,
4+
which provides head element, navigation bar and so on.
5+
6+
## Template Patterns
7+
8+
Patterns have syntax of ${pattern_here}. For example, ${skript.version} is replaced with
9+
current BaseSkript version. Please see below for more...
10+
11+
You can also include other files by using ${include <filename>}. Just please make
12+
sure that those included files don't have tags which are not allowed in position
13+
where include is called.
14+
15+
## Pattern Reference
16+
```
17+
skript.* - Information of BaseSkript
18+
version - BaseSkript's version
19+
include <filename> - Load given file and place them here
20+
generate <expressions/effects/events/types/functions> <loop template file> - Generated reference
21+
content - In template.html, marks the point where other file is placed
22+
```
Loading
29.7 KB
Loading
10.5 KB
Loading

docs-templates/assets/icon.png

19 KB
Loading

docs-templates/assets/light-off.svg

+70
Loading

0 commit comments

Comments
 (0)