token-gallery-backend/generate-api-doc.sh

11 lines
280 B
Bash
Raw Normal View History

2025-01-18 12:40:12 +00:00
#!/bin/bash
# install apidoc:
# npm install -g apidoc
# use fswatch to invoke this command whever index.js updates:
# fswatch index.js | xargs -n1 -I{} ./generate-api-doc.sh
echo "Generating documentation..."
apidoc -i ./ -o apidoc/ -e node_modules -f index.js && echo success