21 lines
477 B
Makefile
21 lines
477 B
Makefile
|
_choose:
|
||
|
just --choose
|
||
|
|
||
|
lint:
|
||
|
-gdlint .
|
||
|
-gdformat -d .
|
||
|
|
||
|
api_version := "v0.0.0-rc.4"
|
||
|
api_location := "scripts/api-client"
|
||
|
generate:
|
||
|
#!/bin/sh
|
||
|
API_URL="https://git.euph.dev/TowerDefence/Server/releases/download/{{ api_version }}/api.yml"
|
||
|
rm -rf {{ api_location }}
|
||
|
mkdir -p {{ api_location }}
|
||
|
npx @openapitools/openapi-generator-cli \
|
||
|
generate \
|
||
|
-g gdscript \
|
||
|
-i "$API_URL" \
|
||
|
-o {{ api_location }} \
|
||
|
-t .api-template
|