Skip to content

Commit

Permalink
OpenAPIクライアントのコード生成時に削除と新規作成を行う (#649)
Browse files Browse the repository at this point in the history
* dresscaについて対応

* AzureADB2Cについて対応

* run-sコマンドに--print-labelを付与
  • Loading branch information
KentaHizume authored Apr 9, 2024
1 parent 7406a28 commit 1af586b
Show file tree
Hide file tree
Showing 6 changed files with 315 additions and 2 deletions.
99 changes: 99 additions & 0 deletions samples/azure-ad-b2c-sample/auth-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion samples/azure-ad-b2c-sample/auth-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"test:unit": "vitest --environment jsdom",
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"generate-client": "openapi-generator-cli generate -g typescript-axios -i ./../auth-backend/api-docs/api-specification.json --additional-properties=withSeparateModelsAndApi=true,modelPackage=models,apiPackage=api,supportsES6=true -o ./src/generated/api-client"
"generate-client": "run-s openapi-client:clean openapi-client:generate --print-label",
"openapi-client:clean": "node -e \"fs.promises.rm('./src/generated/api-client', {recursive: true, force: true})\"",
"openapi-client:generate": "openapi-generator-cli generate -g typescript-axios -i ./../auth-backend/api-docs/api-specification.json --additional-properties=withSeparateModelsAndApi=true,modelPackage=models,apiPackage=api,supportsES6=true -o ./src/generated/api-client"
},
"dependencies": {
"@azure/msal-browser": "^3.11.1",
Expand All @@ -34,6 +36,7 @@
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-vue": "^9.24.0",
"jsdom": "^23.0.1",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.2",
"typescript": "~4.5.5",
"vite": "^5.1.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
api/server-time-api.ts
api/user-api.ts
Expand Down
Loading

0 comments on commit 1af586b

Please sign in to comment.