-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·93 lines (72 loc) · 2.1 KB
/
Makefile
File metadata and controls
executable file
·93 lines (72 loc) · 2.1 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Makefile for Ollama Code
.PHONY: help install build build-all test lint format preflight clean start debug debug-attach web web-build web-start cli
help:
@echo "Makefile for Ollama Code"
@echo ""
@echo "Usage:"
@echo " make install - Install pnpm dependencies"
@echo " make build - Build all packages and bundle CLI"
@echo " make build-all - Build all packages and sandbox"
@echo " make test - Run the test suite"
@echo " make lint - Lint the code"
@echo " make lint-fix - Lint and auto-fix code issues"
@echo " make format - Format the code"
@echo " make preflight - Run formatting, linting, and tests"
@echo " make clean - Remove generated files"
@echo ""
@echo "CLI (Terminal Interface):"
@echo " make cli - Start Ollama Code CLI"
@echo " make cli ARGS='...' - Start CLI with args: make cli ARGS='--resume <id>'"
@echo " make debug - Start CLI in debug mode"
@echo " make debug-attach - Start CLI with inspector for VS Code attach"
@echo ""
@echo "Web UI (Next.js Application):"
@echo " make web - Start Web UI in development mode (port 3000)"
@echo " make web-build - Build Web UI for production"
@echo " make web-start - Start Web UI in production mode"
@echo ""
@echo "Examples:"
@echo " make cli ARGS='--resume'"
@echo " make debug ARGS='--resume deb246aa...'"
@echo " make web # Open http://localhost:3000"
install:
npx pnpm install
build:
npx pnpm run build
build-cli:
npx pnpm run build:cli
build-bundle:
npx pnpm run bundle
build-all:
npx pnpm run build:all
test:
npx pnpm run test
lint:
npx pnpm run lint
lint-fix:
npx pnpm run lint:fix
format:
npx pnpm run format
preflight:
npx pnpm run preflight
clean:
npx pnpm run clean
# CLI commands
cli:
npx pnpm run cli -- $(ARGS)
start:
npx pnpm run start -- $(ARGS)
debug:
npx pnpm run debug -- $(ARGS)
debug-attach:
npx pnpm run debug:attach -- $(ARGS)
# Web UI commands
web:
npx pnpm run web
web-build:
npx pnpm run web:build
web-start:
npx pnpm run web:start
# WebUI Components commands
webui-build:
npx pnpm run webui:build