Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konijima/pz-java2typescript-generator
Generate Project Zomboid java source 2 typescript.
https://github.com/konijima/pz-java2typescript-generator
analyzer generator java projectzomboid typescript
Last synced: 24 days ago
JSON representation
Generate Project Zomboid java source 2 typescript.
- Host: GitHub
- URL: https://github.com/konijima/pz-java2typescript-generator
- Owner: Konijima
- License: apache-2.0
- Created: 2022-08-14T05:52:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-19T17:18:03.000Z (over 2 years ago)
- Last Synced: 2024-11-05T18:55:07.458Z (2 months ago)
- Topics: analyzer, generator, java, projectzomboid, typescript
- Language: TypeScript
- Homepage:
- Size: 1.4 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
[![Compile](https://github.com/Konijima/pz-java2typescript-generator/actions/workflows/Compile.yml/badge.svg)](https://github.com/Konijima/pz-java2typescript-generator/actions/workflows/Compile.yml)
# Requirements
- NodeJS
- Java 17 SDK must be added to the path.
(*Require `javap` command to be available in your terminal*)
# Command Arguments
## `-src` argument
Set the path to the game root directory where the generator will get the `.class` files.
```
node dist/index.js -json -src "C:/Program Files (x86)/Steam/steamapps/common/ProjectZomboid"
```## `-size` argument
Amount of source files to compile simultaneously.
```
node dist/index.js -json -size 200
```
> *Bigger number is faster but there is a limit due to NodeJS subprocess character limit of the command executed.*## `-out` argument
Set the path where the generated typescript will be saved.
```
node dist/index.js -ts -out C:/GeneratedTS
```
# Run
## Compile Generator
```
npm run compile
```## Generate JSON
Generate json files needed to generate the typescript files.
```
npm run json
```## Generate TS
Generate the typescript files.
```
npm run ts
```## Generate ALL
Generate both json and ts files in one command.
```
npm run all
```