-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (49 loc) · 1.36 KB
/
Makefile
File metadata and controls
61 lines (49 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
reqs-fe:
export NVM_DIR="$$HOME/.nvm" && \
[ -s "$$NVM_DIR/nvm.sh" ] && . "$$NVM_DIR/nvm.sh" && \
cd frontend && \
rm -rf node_modules && \
nvm use && \
pnpm install
reqs: reqs-fe
uv sync --dev
reqs-fe-ci:
cd frontend && pnpm install --frozen-lockfile
reqs-ci: reqs-fe-ci
uv sync --dev --frozen
format:
export NVM_DIR="$$HOME/.nvm" && \
[ -s "$$NVM_DIR/nvm.sh" ] && . "$$NVM_DIR/nvm.sh" && \
cd frontend && \
nvm use && \
pnpm format
uv run ruff format service/
uv run ruff check --select I --fix service/
check-format-ci:
uv run ruff format --check service/
uv run ruff check --select I service/
cd frontend && pnpm format:check
lint:
uv run ruff check service/
start-backend:
source .env.sh && uv run uvicorn service.main:app --host 0.0.0.0 --port 8000 --reload
start-frontend:
cd frontend && pnpm start
build-frontend:
rm -rf assets/* templates/*
export NVM_DIR="$$HOME/.nvm" && \
[ -s "$$NVM_DIR/nvm.sh" ] && . "$$NVM_DIR/nvm.sh" && \
cd frontend && \
nvm use && \
pnpm build
cp -r frontend/build/assets/ assets/
cp frontend/build/index.html templates/index.html
build-frontend-ci:
rm -rf assets/* templates/*
cd frontend && pnpm build
cp -r frontend/build/assets/ assets/
cp frontend/build/index.html templates/index.html
docker-compose: build-frontend
docker compose up --build
bump:
uv version --bump $(filter-out $@,$(MAKECMDGOALS))