Add just build system
This commit is contained in:
12
did_router/justfile
Normal file
12
did_router/justfile
Normal file
@@ -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
|
||||
12
frontend/justfile
Normal file
12
frontend/justfile
Normal file
@@ -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
|
||||
26
justfile
Normal file
26
justfile
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user