mirror of
https://github.com/Penguin-71630/meme-bot-frontend-dc.git
synced 2026-03-12 20:40:16 +08:00
init
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user