This commit is contained in:
Penguin-71630 committed 2025-12-07 16:52:09 +08:00
commit ec986f2dbf
5 files changed
+447

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
.PHONY: viewapi
# 定義要檢查的模組目錄
NODE_MODULES_PATH := node_modules
viewapi:
@echo "Bootstrapping API document viewer..."
if [ ! -d "$(NODE_MODULES_PATH)" ]; then \
echo "Dependencies not installed, installing swagger-ui-express, yamljs..."; \
[ ! -f "package.json" ] && npm init -y > /dev/null; \
npm install express swagger-ui-express yamljs; \
else \
echo "Dependencies already installed."; \
fi && \
echo "Booting up API document viewer..." && \
node api/view-API-doc.js