feat: /api/v2 - generate client
ci/woodpecker/push/test Pipeline was successful Details

This commit is contained in:
Dawid Wysokiński 2024-04-01 09:45:33 +02:00
parent cceeb270c4
commit ac571326c3
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
6 changed files with 12 additions and 4 deletions

View File

@ -5,3 +5,4 @@ k8s
.prettierrc.js
commitlint.config.js
postbuild.js
src/lib/twhelpv2

View File

@ -1,3 +0,0 @@
module.exports = {
singleQuote: true,
};

4
.prettierrc.json Normal file
View File

@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}

View File

@ -4,7 +4,8 @@
"license": "MIT",
"scripts": {
"prepare": "husky install",
"build": "rm -rf dist && parcel build ./src/*.user.ts ./src/*.quickbar.ts",
"generate-client": "openapi --input ./src/lib/twhelpv2/openapi3.json --output ./src/lib/twhelpv2 --name TWHelpV2 --useOptions --client axios",
"build": "rm -rf dist && yarn generate-client && parcel build ./src/*.user.ts ./src/*.quickbar.ts",
"postbuild": "PUBLIC_URL=https://scripts.tribalwarshelp.com node postbuild.js",
"lint": "eslint src/**/*.ts"
},
@ -36,6 +37,7 @@
"eslint": "^7.32.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"openapi-typescript-codegen": "^0.28.0",
"parcel": "^2.9.1",
"prettier": "^3.0.0",
"typescript": "^5.0.0"

3
src/lib/twhelpv2/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!openapi3.json

File diff suppressed because one or more lines are too long