Skip to content

Commit 20bfd45

Browse files
committed
Updated actions moved gradle.yml -> build_deploy.yml that runs on tag, added build.yml that always runs.
1 parent ff5bdcd commit 20bfd45

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Java CI
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
- name: Set up JDK 1.8
9+
uses: actions/setup-java@v1
10+
with:
11+
java-version: 1.8
12+
- name: Set up Node.js 12.14.1
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12.14.1
16+
- name: Fix gradlew permissions
17+
run: chmod +x ./gradlew
18+
- name: Build with Gradle
19+
run: ./gradlew shadowJar
20+
- name: Export TypeScript Libraries with Gradle
21+
run: ./gradlew exportTypeScriptLibraries
22+
- name: Compile TypeScript libraries
23+
run: |
24+
cd ./lib/
25+
npm install
26+
npm run compile
File renamed without changes.

src/main/kotlin/com/pixlfox/scriptablemc/TypescriptLibraryExporter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,11 @@ class TypescriptLibraryExporter {
783783
" \"compilerOptions\": {\n" +
784784
" \"target\": \"es2019\",\n" +
785785
" \"module\": \"esnext\",\n" +
786-
" \"sourceMap\": false,\n" +
786+
" \"sourceMap\": true,\n" +
787787
" \"allowJs\": true,\n" +
788788
" \"outDir\": \"js\",\n" +
789789
" \"rootDir\": \"ts\",\n" +
790-
" \"declaration\": false,\n" +
790+
" \"declaration\": true,\n" +
791791
" \"lib\": [\"ES5\", \"ES2015\", \"ES2016\", \"ES2017\", \"ES2018\", \"ES2019\"],\n" +
792792
" \"types\": [\n" +
793793
"\n" +

0 commit comments

Comments
 (0)