-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
63 lines (55 loc) · 1.19 KB
/
Taskfile.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3"
dotenv: [".env"]
tasks:
build:
- |
cd client
npm install
cd ../backend
go mod tidy
format:
- |
echo -e "Frontend Formatting..."
cd client
npm run format
echo -e "\nFrontend Linting...\n"
npm run lint:fix
echo -e "\nBackend Formatting...\n"
cd ../backend
go fmt ./...
swag f
echo -e "\nBackend Linting...\n"
go vet ./...
start-dev:
- |
echo -e "Starting Backend Live-Reload..."
nodemon -e go --ignore 'backend/docs/**' --signal SIGTERM --exec "task start-backend"
start-backend:
- |
cd backend
swag i --parseDependency
swag f
go run main.go
start-frontend:
- |
cd client
npm start
start-ngrok:
dotenv: [".env"]
cmds:
- |
cd backend
ngrok http --domain=$EXPO_PUBLIC_API_DOMAIN 8080
start-docker:
- |
docker-compose down
docker-compose up
test-all:
- |
cd backend
go test -count=1 carewallet/...
pre-commit:
- |
pre-commit clean
pre-commit install --hook-type commit-msg --hook-type pre-push --hook-type pre-commit
pre-commit run --all-files