fix: Makefile now run everything needed to build the app
This commit is contained in:
parent
84b70f8f38
commit
52511dd4c4
24
Makefile
24
Makefile
@ -19,8 +19,14 @@ front/MyINPulse-front/.installed:
|
|||||||
|
|
||||||
vite: ./front/MyINPulse-front/.installed
|
vite: ./front/MyINPulse-front/.installed
|
||||||
|
|
||||||
|
keycloak: ./keycloak/.installed
|
||||||
|
|
||||||
dev-front: clean vite
|
keycloak/.installed:
|
||||||
|
@echo "running one time install"
|
||||||
|
@cd keycloak/CAS && sudo sh build.sh
|
||||||
|
@touch ./keycloak/.installed
|
||||||
|
|
||||||
|
dev-front: clean vite keycloak
|
||||||
@cp config/frontdev.env front/MyINPulse-front/.env
|
@cp config/frontdev.env front/MyINPulse-front/.env
|
||||||
@cp config/frontdev.env .env
|
@cp config/frontdev.env .env
|
||||||
@cp config/frontdev.env MyINPulse-back/.env
|
@cp config/frontdev.env MyINPulse-back/.env
|
||||||
@ -28,7 +34,7 @@ dev-front: clean vite
|
|||||||
@docker compose up -d --build
|
@docker compose up -d --build
|
||||||
@cd ./front/MyINPulse-front/ && npm run dev
|
@cd ./front/MyINPulse-front/ && npm run dev
|
||||||
|
|
||||||
prod: clean
|
prod: clean keycloak
|
||||||
@cp config/prod.env front/MyINPulse-front/.env
|
@cp config/prod.env front/MyINPulse-front/.env
|
||||||
@cp config/prod.env .env
|
@cp config/prod.env .env
|
||||||
@cp config/prod.env .env
|
@cp config/prod.env .env
|
||||||
@ -37,7 +43,7 @@ prod: clean
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
dev-back:
|
dev-back: keycloak
|
||||||
@cp config/backdev.env front/MyINPulse-front/.env
|
@cp config/backdev.env front/MyINPulse-front/.env
|
||||||
@cp config/backdev.env .env
|
@cp config/backdev.env .env
|
||||||
@cp config/backdev.env MyINPulse-back/.env
|
@cp config/backdev.env MyINPulse-back/.env
|
||||||
@ -46,7 +52,7 @@ dev-back:
|
|||||||
@echo "cd MyINPulse-back" && echo 'export $$(cat .env | xargs)'
|
@echo "cd MyINPulse-back" && echo 'export $$(cat .env | xargs)'
|
||||||
@echo "./gradlew bootRun --args='--server.port=8081'"
|
@echo "./gradlew bootRun --args='--server.port=8081'"
|
||||||
|
|
||||||
dev: clean vite
|
dev: clean vite keycloak
|
||||||
@cp config/dev.env front/MyINPulse-front/.env
|
@cp config/dev.env front/MyINPulse-front/.env
|
||||||
@cp config/dev.env .env
|
@cp config/dev.env .env
|
||||||
@cp config/dev.env MyINPulse-back/.env
|
@cp config/dev.env MyINPulse-back/.env
|
||||||
@ -55,3 +61,13 @@ dev: clean vite
|
|||||||
@echo "cd MyINPulse-back" && echo 'export $$(cat .env | xargs)'
|
@echo "cd MyINPulse-back" && echo 'export $$(cat .env | xargs)'
|
||||||
@echo "./gradlew bootRun --args='--server.port=8081'"
|
@echo "./gradlew bootRun --args='--server.port=8081'"
|
||||||
@cd ./front/MyINPulse-front/ && npm run dev &
|
@cd ./front/MyINPulse-front/ && npm run dev &
|
||||||
|
|
||||||
|
test-back: clean keycloak
|
||||||
|
@cp config/dev.env front/MyINPulse-front/.env
|
||||||
|
@cp config/dev.env .env
|
||||||
|
@cp config/dev.env MyINPulse-back/.env
|
||||||
|
@cp config/dev.docker-compose.yaml docker-compose.yaml
|
||||||
|
@docker compose up -d --build
|
||||||
|
@echo "cd MyINPulse-back" && echo 'export $$(cat .env | xargs)'
|
||||||
|
@cd ./MyINPulse-back/ && ./gradlew test && ./gradlew jacocoTestReport
|
||||||
|
@firefox ./MyINPulse-back/build/jacocoHtml/index.html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user