24 lines
449 B
Makefile
24 lines
449 B
Makefile
PYTHON := .venv/bin/python
|
|
PIP := .venv/bin/pip
|
|
WEB_DIR := apps/web
|
|
|
|
.PHONY: setup test lint build check
|
|
|
|
setup:
|
|
python3 -m venv .venv
|
|
$(PIP) install -e apps/scraper
|
|
cd $(WEB_DIR) && npm ci
|
|
|
|
test:
|
|
$(PYTHON) -m unittest discover -s apps/scraper/tests -v
|
|
cd $(WEB_DIR) && npm test
|
|
|
|
lint:
|
|
$(PYTHON) -m py_compile apps/scraper/src/hamchin_scraper/*.py
|
|
cd $(WEB_DIR) && npm run lint
|
|
|
|
build:
|
|
cd $(WEB_DIR) && npm run build
|
|
|
|
check: test lint build
|