24 lines
581 B
Makefile
24 lines
581 B
Makefile
PYTHON ?= .venv/bin/python
|
|
|
|
.PHONY: bootstrap serve test test-backend test-swift check-web ios-project
|
|
bootstrap:
|
|
python3 -m venv .venv
|
|
$(PYTHON) -m pip install -r backend/requirements-dev.txt
|
|
|
|
serve:
|
|
$(PYTHON) -m uvicorn apc.api:create_app --factory --app-dir backend/src --host 127.0.0.1 --port 8000
|
|
|
|
test: test-backend test-swift check-web
|
|
|
|
test-backend:
|
|
$(PYTHON) -m pytest -c backend/pyproject.toml backend/tests
|
|
|
|
test-swift:
|
|
swift test --package-path packages/PolicyCore
|
|
|
|
check-web:
|
|
node --check backend/src/apc/static/app.js
|
|
|
|
ios-project:
|
|
cd ios && xcodegen generate
|