feat: /api/v2 - generate client
ci/woodpecker/push/test Pipeline was successful
Details
ci/woodpecker/push/test Pipeline was successful
Details
This commit is contained in:
parent
cceeb270c4
commit
ac571326c3
|
@ -5,3 +5,4 @@ k8s
|
|||
.prettierrc.js
|
||||
commitlint.config.js
|
||||
postbuild.js
|
||||
src/lib/twhelpv2
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
module.exports = {
|
||||
singleQuote: true,
|
||||
};
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5"
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
*
|
||||
!.gitignore
|
||||
!openapi3.json
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue