TheBrokenRail
1e16e2bd04
Some checks failed
ScriptCraft/pipeline/head There was a failure building this commit
802 B
802 B
TypeScript Example
This is an example of a Minecraft mod made in TypeScript using ScriptCraft.
Files
src/main/ts
: Contains TypeScript Codesrc/main/java
: Contains Bootstrap Java Code
Notes
- This will also work with JavaScript if you set
compilerOptions.allowJs
and optionallycompilerOptions.checkJs
insrc/main/ts/tsconfig.json
totrue
- 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 JARs
An API JAR can be built with ./gradlew apiJar
.
File Structure
- API JAR Root
- src/
- Source Root
- types/
- File structure of node_modules/@types