Add Missing Just command
All checks were successful
Quality Check / Linting (push) Successful in 22s
All checks were successful
Quality Check / Linting (push) Successful in 22s
This commit is contained in:
parent
1ad1418023
commit
bd720fd5c7
1 changed files with 13 additions and 0 deletions
13
Justfile
13
Justfile
|
@ -11,3 +11,16 @@ down:
|
||||||
lint:
|
lint:
|
||||||
-npm run lint:ts:fix
|
-npm run lint:ts:fix
|
||||||
-npm run lint:scss:fix
|
-npm run lint:scss:fix
|
||||||
|
|
||||||
|
generate:
|
||||||
|
#!/bin/sh
|
||||||
|
API_VERSION="$(cat package.json | jq -r '.api_version')"
|
||||||
|
API_URL="https://git.euph.dev/TowerDefence/Server/releases/download/$API_VERSION/api.yml"
|
||||||
|
rm -rf src/app/core/server
|
||||||
|
mkdir -p src/app/core/server
|
||||||
|
npx @openapitools/openapi-generator-cli \
|
||||||
|
generate \
|
||||||
|
--openapitools src/app/core/openapitools.json \
|
||||||
|
-i "$API_URL" \
|
||||||
|
-g typescript-angular \
|
||||||
|
-o src/app/core/server
|
||||||
|
|
Loading…
Add table
Reference in a new issue