-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.32 KB
/
Copy pathMakefile
File metadata and controls
53 lines (39 loc) · 1.32 KB
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
IMAGE_ID := ghcr.io/hexlet-components/http-example
PORT ?= 8080
setup:
pnpm install --frozen-lockfile
make compile
# Типы обработчиков из спецификации. Сгенерированное лежит в репозитории, а не
# собирается на старте: образ не должен тянуть генератор, а свежесть проверяет
# `make check-generated` в прогоне.
generate:
pnpm exec openapi-ts
check-generated:
pnpm exec openapi-ts
git diff --exit-code custom-server/src/generated
compile:
pnpm exec tsp compile ./typespec/http-api/main.tsp --output-dir "./tsp-output/http-api"
pnpm exec tsp compile ./typespec/postman/main.tsp --output-dir "./tsp-output/postman"
pnpm exec tsp compile ./typespec/http-protocol/main.tsp --output-dir "./tsp-output/http-protocol"
pnpm exec tsp compile ./typespec/js-playwright/main.tsp --output-dir "./tsp-output/js-playwright"
start:
./bin/start.sh
test:
make check-generated
node ./bin/smoke-test.js
update-deps:
pnpm exec ncu -u
compose-build:
docker compose build
compose-bash:
docker compose run --rm app sh
compose-setup:
docker compose run --rm app setup
compose:
docker compose up
compose-down:
docker compose down
compose-logs:
docker compose logs -f --tail=200
compose-ps:
docker compose ps