This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
ScriptCraft/examples/typescript
TheBrokenRail 105d3b0933
All checks were successful
ScriptCraft/pipeline/head This commit looks good
Fix File Structures in Documentation
2020-05-24 15:09:14 -04:00
..
src/main Improve Documentation 2020-05-24 14:18:21 -04:00
.gitignore Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
build.gradle Update Examples 2020-05-23 20:54:20 -04:00
gradle Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
gradle.properties Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
gradlew Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
gradlew.bat Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
README.md Fix File Structures in Documentation 2020-05-24 15:09:14 -04:00
settings.gradle Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
typescript.build.gradle Add Documentation 2020-05-24 14:09:25 -04:00

TypeScript Example

This is an example of a Minecraft mod made in TypeScript using ScriptCraft.

Files

  • src/main/ts: Contains TypeScript Code
  • src/main/java: Contains Bootstrap Java Code

Notes

  • This will also work with JavaScript if you set compilerOptions.allowJs and optionally compilerOptions.checkJs in src/main/ts/tsconfig.json to true
  • NPM dependencies are not bundled
  • API JARs are not bundled

typescript Gradle Configuration

The typescript gradle configuration will extract the specified API JAR into src/main/ts/build/dependencies.

API JAR Format

- API JAR Root
  - src/
    - Source Root
  - types/
    - File structure of node_modules/@types