-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (43 loc) · 1.13 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
.PHONY: install test
include ./config/make/variables.mk
default: build-images install
## Open a bash session in the NodeJS container
bash:
bin/docker-compose run --rm --entrypoint bash node
## Force rebuild Docker images
build-images:
bin/docker-compose build
## Install the project. Useful after the first clone or to refresh the project.
install:
bin/yarn
## Run the linter on the src directory.
lint:
bin/yarn lint
## Run the linter on the src directory and fix any error encountered.
lint-fix:
bin/yarn lint:fix
## Displays running container logs
logs:
bin/docker-compose logs --tail 200 -f
## Restart the development server
restart: stop start
## Start the development server
start:
bin/docker-compose up -d app
## Start the development server with output in the terminal
start-debug:
bin/docker-compose up app
## Display status of running containers
status:
bin/docker-compose ps
## Stops running app and server
stop:
bin/docker-compose kill
bin/docker-compose down --remove-orphans
## Run all tests
test:
bin/yarn test
## Run all tests in watch mode
test-watch:
bin/yarn test:watch
include ./config/make/help-target.mk