chore: set up Makefile, linting, and dockerized dev shell
This commit is contained in:
42
Makefile
Normal file
42
Makefile
Normal file
@@ -0,0 +1,42 @@
|
||||
.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)
|
||||
Reference in New Issue
Block a user