-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (55 loc) · 1.8 KB
/
Makefile
File metadata and controls
66 lines (55 loc) · 1.8 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
.PHONY: build test clean publish publish-patch publish-minor publish-major dev help
# Default target
help:
@echo "Ohno - Task Management for AI Workflows"
@echo ""
@echo "Usage: make <target>"
@echo ""
@echo "Development:"
@echo " build Build all packages"
@echo " test Run all tests"
@echo " dev Start development mode"
@echo " clean Remove build artifacts"
@echo ""
@echo "Publishing:"
@echo " publish-patch Bump patch version and publish (0.5.1 → 0.5.2)"
@echo " publish-minor Bump minor version and publish (0.5.1 → 0.6.0)"
@echo " publish-major Bump major version and publish (0.5.1 → 1.0.0)"
@echo ""
@echo "Other:"
@echo " serve Start local kanban server (requires .ohno/)"
@echo " init Initialize .ohno/ directory"
# Development targets
build:
cd packages && npm run build
test:
cd packages && npm run test
dev:
cd packages && npm run dev
clean:
cd packages && npm run clean
# Publishing targets
publish-patch:
$(MAKE) _publish BUMP=patch
publish-minor:
$(MAKE) _publish BUMP=minor
publish-major:
$(MAKE) _publish BUMP=major
_publish: test
@echo "Publishing $(BUMP) version..."
cd packages && npm version $(BUMP) --workspaces --no-git-tag-version
$(MAKE) build
cd packages && npm publish --workspace @stevestomp/ohno-core --access public
cd packages && npm publish --workspace @stevestomp/ohno-mcp --access public
cd packages && npm publish --workspace @stevestomp/ohno-cli --access public
@VERSION=$$(node -p "require('./packages/ohno-core/package.json').version"); \
git add -A && \
git commit -m "chore: Release v$$VERSION" && \
git tag "v$$VERSION" && \
git push origin master --tags
@echo "Published successfully!"
# Convenience targets
serve:
npx @stevestomp/ohno-cli serve
init:
npx @stevestomp/ohno-cli init