Merge pull request 'feat: Add justfile' (!200) from add-justfile into main
Reviewed-on: #200
This commit is contained in:
commit
46c9d2b7c1
1 changed files with 23 additions and 0 deletions
23
justfile
Normal file
23
justfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Info
|
||||
info:
|
||||
just --list
|
||||
|
||||
# Starts the project in development mode
|
||||
start:
|
||||
command -v concurrently &> /dev/null || bun add -g concurrently
|
||||
command -v watchexec &> /dev/null || brew install watchexec
|
||||
docker compose up -d
|
||||
conc -n "frontend,backend" "cd frontend && bun run start" "cd backend/ && watchexec -r -e java ./gradlew :bootRun"
|
||||
|
||||
# Builds both the backend and frontend docker images (obv)
|
||||
build:
|
||||
just build-fe
|
||||
just build-be
|
||||
|
||||
# Builds the backend docker image
|
||||
build-be:
|
||||
docker buildx build -f backend/.docker/Dockerfile -t git.kjan.de/szut/casino-backend:latest backend
|
||||
|
||||
# Builds the frontend docker image
|
||||
build-fe:
|
||||
docker buildx build -f frontend/.docker/Dockerfile -t git.kjan.de/szut/casino-frontend:latest frontend
|
Reference in a new issue