-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (47 loc) · 1.36 KB
/
Copy pathMakefile
File metadata and controls
65 lines (47 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!make
DOWNTIFY_VERSION := 2.8.0
TARGET := henriquesebastiao/downtify
all: build latest
build:
docker buildx create --use
docker buildx build --platform=linux/amd64,linux/arm64 -t $(TARGET):$(DOWNTIFY_VERSION) --push .
latest:
docker buildx create --use
docker buildx build --platform=linux/amd64,linux/arm64 -t $(TARGET):latest --push .
clean:
find downloads -type f -name "*.mp3" -exec rm -f {} \;
up:
docker compose up --build -d
down:
docker compose down
run: frontend-build
uv run python main.py web
frontend-build:
npm run build --prefix frontend
format:
uv run ruff format .; ruff check . --fix
prettier --write frontend/src/.
lint:
prettier --check frontend/src/.
uv run ruff check .; ruff check . --diff
export:
uv export --no-hashes --no-dev -o requirements.txt
changelog:
github_changelog_generator -u henriquesebastiao -p downtify -o CHANGELOG --no-verbose
@echo "Changelog generated at CHANGELOG"
test:
npm run test --prefix frontend
uv run pytest -x -s -v
version:
@VERSION=$(word 2,$(MAKECMDGOALS)); \
echo "Downtify version: $$VERSION"; \
./version.sh $$VERSION
npm install --prefix frontend
npm run build --prefix frontend
uv run ruff format .; ruff check . --fix
prettier --write frontend/src/.
doc:
uv run zensical serve
%:
@:
.PHONY: all build latest clean up down run frontend-build format lint export changelog version doc