-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (32 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: init-react init backend-i frontend-i backend frontend stop
init-react:
docker-compose stop
docker-compose down -v
rm -rf frontend
rm -rf backend
mkdir "backend"
mkdir "frontend"
docker-compose run --rm backend bash -c "npm install -g @nestjs/cli && nest new . --skip-git"
docker-compose run --rm frontend bash -c "npm install -g create-vite vite && create-vite . --template react-ts"
docker-compose up
init:
docker-compose down -v
rm -rf frontend
rm -rf backend
mkdir "backend"
mkdir "frontend"
docker-compose run --rm backend bash -c "npm install -g @nestjs/cli && nest new . --skip-git"
docker-compose run --rm frontend bash -c "npm install -g create-vite vite && create-vite . --template vue-ts"
docker-compose up
backend-i:
docker-compose run backend bash -c "npm i $(filter-out $@,$(MAKECMDGOALS))"
frontend-i:
docker-compose run frontend bash -c "npm i $(filter-out $@,$(MAKECMDGOALS))"
backend:
docker exec -it backend bash
frontend:
docker exec -it frontend bash
stop:
docker-compose stop
%:
@: