.PHONY: lint test smoke check

lint:
	node --check static/app.js
	node --check static/js/core/state.js
	node --check static/js/main.js
	python3 -m py_compile server.py api_get_routes.py api_post_routes.py services/workflows.py services/post_ops.py repositories/history_repository.py wechat_bot_bridge.py

test:
	python3 -m unittest discover -s tests -v

smoke:
	bash scripts/smoke_api.sh

check: lint test smoke
