This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (52 loc) · 1.37 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
prettier/check:
yarn prettier --ignore-unknown --list-different .
prettier/format:
yarn prettier --ignore-unknown --write .
docker/up:
make build/clear
docker-compose up -d
docker/stop:
make build/clear
docker-compose stop
docker/down:
make build/clear
docker-compose down --volumes
docker/shell:
docker-compose exec api bash
docker/logs/api:
docker-compose logs -f api
docker/logs/database:
docker-compose logs -f database
docker/start:
make build/clear
make docker/up
make docker/logs/api
docker/restart:
make build/clear
make docker/stop
make docker/up
make docker/logs/api
docker/clear_logs:
echo "" > $(docker inspect --format='{{.LogPath}}' api)
make docker/logs
docker/recreate_all_containers:
make build/clear
make docker/down
make docker/up
make docker/logs/api
build/clear:
rm -rf dist
test/unit:
NODE_ENV=test && yarn jest --config jest.unit.config.js --watch --verbose --runInBand
test/integration:
NODE_ENV=test && yarn jest --config jest.integration.config.js --watch --verbose --runInBand
test/all:
NODE_ENV=test && yarn jest --config jest.all.config.js --watch --verbose --runInBand
codegen/plop:
yarn plop
codegen/schematics:
(cd ./demo && npm run build)
yarn schematics ./demo:constant --debug=false
codegen/schematics/pass_arguments_directly:
(cd ./demo && npm run build)
yarn schematics ./demo:constant --debug=false --name ble