-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (40 loc) · 1.27 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
default:
@echo "" > /dev/null
# Start docker with values for development
docker_dev_up:
@docker-compose --env-file .env.dev -p zmaj_dev up --abort-on-container-exit
# Start docker with values for testing, detached
docker_test_up:
@docker-compose --env-file .env.test -p zmaj_test up -d
# Stop dev containers. Don't remove their volumes
docker_dev_down:
@docker-compose --env-file .env.dev -p zmaj_dev down
# Remove test container and their volumes (-v)
docker_test_down:
@docker-compose --env-file .env.test -p zmaj_test down -v
format:
@npm run format
lint:
@npm run lint
tsc:
@npm run tsc
build:
@npm run build
serve_api:
@pnpm --filter=@zmaj-js/api run serve
serve_admin_panel:
@pnpm --filter=@zmaj-js/admin-panel run serve
dev_build:
@pnpm --recursive --filter="./packages/**" --filter="!./packages/admin-panel" --parallel run dev
# @pnpm --recursive --filter="./packages/**" --filter="!./packages/admin-panel" --parallel run dev
test_unit:
@npx vitest run --config vitest-unit.config.ts
test_e2e_api:
@npx turbo test-e2e-api
test_e2e_gui:
@pnpm --filter=@zmaj-js/e2e-tests run test-gui
generate_videos:
@npx playwright test -c packages/e2e-tests/playwright-record-examples.config.ts
test: test_unit test_api_e2e test_gui_e2e
docs:
@pnpm --filter=@zmaj-js/docs run start