File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed
Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,23 @@ help: ## Show this help message
1717 }' $(MAKEFILE_LIST)
1818 @echo " "
1919
20+ .PHONY : check-deps
21+ check-deps : # # Verify required tools are installed
22+ @command -v bun > /dev/null 2>&1 || { \
23+ echo " " ; \
24+ echo " bun is required but not installed." ; \
25+ echo " " ; \
26+ echo " Install:" ; \
27+ echo " macOS: brew install oven-sh/bun/bun" ; \
28+ echo " Linux/WSL: curl -fsSL https://bun.sh/install | bash" ; \
29+ echo " " ; \
30+ echo " See: https://bun.sh/docs/installation" ; \
31+ echo " " ; \
32+ exit 1; \
33+ }
34+
2035.PHONY : install
21- install : # # Install dependencies and git hooks
36+ install : check-deps # # Install dependencies and git hooks
2237 bun install
2338 @if command -v prek > /dev/null 2>&1 ; then \
2439 prek install; \
@@ -29,17 +44,17 @@ install: ## Install dependencies and git hooks
2944# # Development
3045
3146.PHONY : dev
32- dev : # # Start development server
47+ dev : check-deps # # Start development server
3348 bun run dev
3449
3550.PHONY : preview
36- preview : # # Build and preview production locally
51+ preview : check-deps # # Build and preview production locally
3752 bun run preview
3853
3954# # Build
4055
4156.PHONY : build
42- build : # # Build production bundle
57+ build : check-deps # # Build production bundle
4358 bun run build
4459
4560.PHONY : clean
@@ -49,11 +64,11 @@ clean: ## Clean build artifacts and caches
4964# # Quality
5065
5166.PHONY : lint
52- lint : # # Run oxlint on source files
67+ lint : check-deps # # Run oxlint on source files
5368 bunx oxlint src/
5469
5570.PHONY : typecheck
56- typecheck : # # Run TypeScript type checking
71+ typecheck : check-deps # # Run TypeScript type checking
5772 bunx astro check
5873
5974.PHONY : check
You can’t perform that action at this time.
0 commit comments