-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
74 lines (49 loc) · 1.53 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.PHONY: run
run:
PORT=3001 yarn start
db-reset:
rm packages/backend/dev.sqlite3
yarn db-migrate
yarn db-seed
docker-build:
docker build -f ./docker/Dockerfile -t people-manager-repo .
docker-migration-build:
docker build -f ./docker/Dockerfile.migration -t people-manager-migration-repo .
docker-run:
docker run -p 3001:3001 -v $(pwd)/packages/backend:/backend people-manager-repo /backend/.env.local
lint-backend:
cd packages/backend && yarn lint
lint-frontend:
cd packages/frontend && yarn lint
lint: lint-backend lint-frontend
lint-fix-backend:
cd packages/backend && yarn lint-fix
lint-fix-frontend:
cd packages/frontend && yarn lint-fix
lint-fix: lint-fix-backend lint-fix-frontend
style-backend:
cd packages/backend && yarn style
style-frontend:
cd packages/frontend && yarn style
style: style-backend style-frontend
style-fix-backend:
cd packages/backend && yarn style-fix
style-fix-frontend:
cd packages/frontend && yarn style-fix
style-fix: style-fix-backend style-fix-frontend
build-backend:
cd packages/backend && yarn build
build-frontend:
cd packages/frontend && yarn build
build-frontend-and-upload:
yarn build-frontend
aws s3 cp packages/frontend/build s3://people-manager-bucket-1 --recursive
aws cloudfront create-invalidation --paths "/*" --distribution-id EKQSELA6RXUSP
build: build-backend build-frontend
test-backend:
cd packages/backend && yarn test --all
test-frontend:
cd packages/frontend && yarn test --all
test: test-backend test-frontend
ci: lint style build test
ci-fix: lint-fix style-fix