43 lines
721 B
Makefile
43 lines
721 B
Makefile
.PHONY: install dev lint shell task-list task-add task-done task-update
|
|
|
|
# Installation
|
|
install:
|
|
cd client && npm install
|
|
cd server && npm install
|
|
pip install duckdb ruff
|
|
|
|
# Development
|
|
dev:
|
|
docker compose up --build
|
|
|
|
# Linting
|
|
lint:
|
|
cd client && npm run lint || true
|
|
ruff check tasks/
|
|
|
|
# Docker Shell
|
|
shell:
|
|
docker compose run --rm dev-shell
|
|
|
|
# Task Tracker Integration
|
|
PYTHON=python3
|
|
TASK_CLI=tasks/cli.py
|
|
|
|
task-list:
|
|
$(PYTHON) $(TASK_CLI) list
|
|
|
|
task-add:
|
|
$(PYTHON) $(TASK_CLI) add "$(title)"
|
|
|
|
task-done:
|
|
$(PYTHON) $(TASK_CLI) done $(id)
|
|
|
|
task-update:
|
|
$(PYTHON) $(TASK_CLI) update $(id) $(status)
|
|
|
|
task-delete:
|
|
$(PYTHON) $(TASK_CLI) delete $(id)
|
|
|
|
task-filter:
|
|
$(PYTHON) $(TASK_CLI) list --status $(status)
|