From e5bac4a35e6d199706060a6c6bdf32c48bebef0d Mon Sep 17 00:00:00 2001 From: Anatoly Karlov Date: Tue, 13 Aug 2024 14:47:46 +0700 Subject: [PATCH] fix java deploy --- .gitignore | 14 +++++++++----- package.json | 7 ++++--- pom.xml | 4 ++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index f5e994d..760061f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,12 @@ # Dir for API portal deploy dist out +/.idea/ +/lib/ +/node_modules/ +/static/ +/web_deploy/ +openapitools.json # Logs logs @@ -38,7 +44,7 @@ node_modules # Generated web_deploy/ -target +target/ # User-specific stuff: .idea/ @@ -60,10 +66,8 @@ target # Gradle: .idea/gradle.xml .idea/libraries +.DS_Store +spec/.DS_Store # Frontend /lib -redoc-static.html - -#Mac OS -.DS_Store \ No newline at end of file diff --git a/package.json b/package.json index cd83af0..e36f512 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,9 @@ }, "scripts": { "start": "openapi preview-docs", - "build": "openapi bundle -o openapi/openapi.yaml", - "docs": "redocly build-docs openapi/openapi.yaml --output static/index.html", - "validate": "openapi lint" + "build": "openapi bundle -o web_deploy/openapi.yaml && openapi bundle -o web_deploy/openapi.json", + "docs": "redocly build-docs ./web_deploy/openapi.yaml --output static/index.html", + "validate": "openapi lint", + "codegen": "vality-openapi generate ./web_deploy/openapi.json" } } diff --git a/pom.xml b/pom.xml index 4cd0523..aa6b141 100644 --- a/pom.xml +++ b/pom.xml @@ -128,7 +128,7 @@ generate - openapi/openapi.yaml + web_deploy/openapi.yaml spring true true @@ -165,7 +165,7 @@ generate - openapi/openapi.yaml + web_deploy/openapi.yaml java java8