-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 675 Bytes
/
Makefile
File metadata and controls
44 lines (31 loc) · 675 Bytes
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
# Dependencies
docker-compose.yml:
echo -e "ERROR: No docker-compose.yml found."
package-lock.json:
echo -e "ERROR: No package-lock.json found."
node_modules: package-lock.json
npm clean-install
# Commands
up: docker-compose.yml
docker-compose up -d
sleep 3
down: docker-compose.yml
docker-compose down -v
dev: node_modules
npm run dev
build: node_modules
npm run build
lint: node_modules
npm run lint
format: node_modules
npm run format
tests: node_modules
npm test
coverage: node_modules
npm run test:cov
migrate: up
npx prisma migrate dev --name init
.PHONY: up down dev build lint format tests coverage migrate
# Aliases
run: up dev
.PHONY: run