diff --git a/did_router/justfile b/did_router/justfile new file mode 100644 index 0000000..9b824d0 --- /dev/null +++ b/did_router/justfile @@ -0,0 +1,12 @@ +build: + cargo build --release + +install: build + cargo install --path . --root /usr/local + cp .env /etc/did_router.conf +uninstall: + rm -f /usr/local/bin/did_router + rm -f /etc/did_router.conf + +clean: + cargo clean \ No newline at end of file diff --git a/frontend/justfile b/frontend/justfile new file mode 100644 index 0000000..5776ab4 --- /dev/null +++ b/frontend/justfile @@ -0,0 +1,12 @@ +build: + trunk build --release +install: build + mkdir -p /var/www/did_router + cp dist/* /var/www/did_router/ + +uninstall: + rm -rf /var/www/did_router + +clean: + trunk clean + cargo clean \ No newline at end of file diff --git a/justfile b/justfile new file mode 100644 index 0000000..7a75b6b --- /dev/null +++ b/justfile @@ -0,0 +1,26 @@ +default: build-all + +build-all: build-api build-frontend + +build-api: + just --justfile ./did_router/justfile -d did_router build +build-frontend: + just --justfile ./frontend/justfile -d frontend build + +install: install-api install-frontend +install-api: + just --justfile ./did_router/justfile -d did_router install +install-frontend: + just --justfile ./frontend/justfile -d frontend install + +uninstall: uninstall-api uninstall-frontend +uninstall-api: + just --justfile ./did_router/justfile -d did_router uninstall +uninstall-frontend: + just --justfile ./frontend/justfile -d frontend uninstall + +clean: clean-api clean-frontend +clean-api: + just --justfile ./did_router/justfile -d did_router clean +clean-frontend: + just --justfile ./frontend/justfile -d frontend clean \ No newline at end of file