Committed the generated OpenAPI sources instead of using the plugin.
This commit is contained in:
1 parent
c984be3263
commit
a303150963
7 files changed
+1012376
-20
No files matched your search
@@ -62,7 +62,7 @@ pkg-update: ## Updates the SPM package dependencies
|
||||
doc-generate: doc-generate-archive doc-generate-github ## Generates the library documentation for both Github and Xcode
|
||||
|
||||
doc-generate-archive: ## Generates the library documentation archive for Xcode
|
||||
@swift package \
|
||||
@ENABLE_DOCC_PLUGIN=1 swift package \
|
||||
--allow-writing-to-directory $(DOCC_ARCHIVE_OUTPUT) \
|
||||
generate-documentation \
|
||||
--target $(SPM_LIBRARY_TARGET) \
|
||||
@@ -71,7 +71,7 @@ doc-generate-archive: ## Generates the library documentation archive for Xcode
|
||||
--output-path $(DOCC_ARCHIVE_OUTPUT)
|
||||
|
||||
doc-generate-github: ## Generates the library documentation for Github
|
||||
@swift package \
|
||||
@ENABLE_DOCC_PLUGIN=1 swift package \
|
||||
--allow-writing-to-directory $(DOCC_GITHUB_OUTPUT) \
|
||||
generate-documentation \
|
||||
--target $(SPM_LIBRARY_TARGET) \
|
||||
@@ -84,7 +84,7 @@ doc-generate-github: ## Generates the library documentation for Github
|
||||
|
||||
doc-preview: ## Previews the library documentation in Safari
|
||||
@open -a safari $(DOCC_PREVIEW_URL)
|
||||
@swift package \
|
||||
@ENABLE_DOCC_PLUGIN=1 swift package \
|
||||
--disable-sandbox \
|
||||
preview-documentation \
|
||||
--target $(SPM_LIBRARY_TARGET) \
|
||||
@@ -102,11 +102,22 @@ oas-download: ## Downloads the latest App Store Connect OpenAPI specification do
|
||||
@mv "$(OAS_DOWNLOAD_FILE)" "$(OAS_DOWNLOAD_OUTPUT)"
|
||||
@rm -rf "$(OAS_DOWNLOAD_FOLDER)"
|
||||
@$(MAKE) --no-print-directory oas-patch
|
||||
@$(MAKE) --no-print-directory oas-generate
|
||||
|
||||
oas-patch: # Patches the OpenAPI specification document with the patches in Scripts/patch-oas.jq
|
||||
@jq --from-file Scripts/patch-oas.jq "$(OAS_DOWNLOAD_OUTPUT)" > "$(OAS_DOWNLOAD_OUTPUT).tmp"
|
||||
@mv "$(OAS_DOWNLOAD_OUTPUT).tmp" "$(OAS_DOWNLOAD_OUTPUT)"
|
||||
|
||||
oas-generate: ## Generates the library source code from the OpenAPI specification document
|
||||
@mkdir -p "$(OAS_GENERATE_OUTPUT)"
|
||||
@swift run \
|
||||
--configuration release \
|
||||
--package-path "$(OAS_GENERATE_TOOLS)" \
|
||||
swift-openapi-generator generate \
|
||||
--config "$(OAS_GENERATE_CONFIG)" \
|
||||
--output-directory "$(OAS_GENERATE_OUTPUT)" \
|
||||
"$(OAS_DOWNLOAD_OUTPUT)"
|
||||
|
||||
# IDE
|
||||
|
||||
ide-xcode: ## Opens this package with Xcode
|
||||
|
||||
Reference in new issue
Block a user