CLI for using GodotJS with TypeScript
Build typescript files
You can use
build.json
as a config file. By default it tries to search for the configuration otherwise use a correct path by passing--config=./build.json
.
long | short | description | required | defaultValue |
---|---|---|---|---|
--src |
Relative path where *.ts files located | ❌ |
"." |
|
--out |
Relative path where *.ts files are written | ❌ |
"./.godot/GodotJS" |
|
--dry |
Do a dry run with this command - prints/returns output | ❌ |
||
--minifyClasses |
Minifies GodotJS classes | ❌ |
true |
Generate typescript utility files
You can use
generate.json
as a config file. By default it tries to search for the configuration otherwise use a correct path by passing--config=./generate.json
.
long | short | description | required | defaultValue |
---|---|---|---|---|
--src |
Relative path where script files located | ❌ |
"." |
|
--out |
Relative path where generated files are written | ❌ |
"." |
Creates a new GodotJS project with TypeScript support
You can use
init.json
as a config file. By default it tries to search for the configuration otherwise use a correct path by passing--config=./init.json
.
long | short | description | required | defaultValue |
---|---|---|---|---|
--name |
The name of your project | ✅ |
"my-game" |
|
--out |
Relative path where project is written | ❌ |
"." |
|
--forceDelete |
Removes project dir if it's already there | ❌ |
||
--dry |
Do a dry run with this command - prints/returns output | ❌ |
Watch typescript files
You can use
watch.json
as a config file. By default it tries to search for the configuration otherwise use a correct path by passing--config=./watch.json
.
long | short | description | required | defaultValue |
---|---|---|---|---|
--src |
Relative path where *.ts files located | ❌ |
"." |
|
--out |
Relative path where *.ts files are written | ❌ |
"./.godot/GodotJS" |
|
--dry |
Do a dry run with this command - prints/returns output | ❌ |