diff --git a/spiffworkflow-backend/.gitignore b/spiffworkflow-backend/.gitignore index 0d420dae2..790b4c8ab 100644 --- a/spiffworkflow-backend/.gitignore +++ b/spiffworkflow-backend/.gitignore @@ -22,3 +22,4 @@ node_modules /local_wheels/*.whl /some_cache_dir /process.json +/spiffworkflow_backend.svg diff --git a/spiffworkflow-backend/bin/run_pydeps b/spiffworkflow-backend/bin/run_pydeps new file mode 100755 index 000000000..211b3be40 --- /dev/null +++ b/spiffworkflow-backend/bin/run_pydeps @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +function error_handler() { + >&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}." + exit "$2" +} +trap 'error_handler ${LINENO} $?' ERR +set -o errtrace -o errexit -o nounset -o pipefail + +if ! command -v pydeps >/dev/null 2>&1; then + echo "pydeps is not installed. installing..." + pip install pydeps +fi + +pydeps src/spiffworkflow_backend --display "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --only spiffworkflow_backend --rmprefix spiffworkflow_backend. --rankdir LR --exclude-exact spiffworkflow_backend.services.custom_parser spiffworkflow_backend.specs spiffworkflow_backend.services spiffworkflow_backend spiffworkflow_backend.models spiffworkflow_backend.load_database_models spiffworkflow_backend.routes --exclude spiffworkflow_backend.config spiffworkflow_backend.interfaces spiffworkflow_backend.models.db