-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (41 loc) · 1.17 KB
/
Copy pathMakefile
File metadata and controls
53 lines (41 loc) · 1.17 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
.PHONY: help dev build lint typecheck check preview ship deploy clean install
help:
@echo "Available commands:"
@echo ""
@echo " make dev - Start development server (http://localhost:3000)"
@echo " make build - Build for production (generates ./out)"
@echo " make lint - Run ESLint"
@echo " make typecheck - Run TypeScript without emitting files"
@echo " make check - Run lint, typecheck, and translation checks"
@echo " make preview - Serve ./out locally after build"
@echo " make ship [MSG] - Check, build, commit, and push the current branch"
@echo " make clean - Remove build artifacts"
@echo " make install - Install dependencies (npm ci)"
@echo " make help - Show this help message"
@echo ""
dev:
npm run dev
build:
npm run build
lint:
npm run lint
typecheck:
npm run typecheck
check:
npm run check
preview:
npm run preview
ship:
ifdef MSG
npm run ship "$(MSG)"
else
npm run ship
endif
deploy: ship
clean:
rm -rf .next .next-dev out .deploycount
@echo "Cleaned build artifacts"
install:
npm ci
@echo "Dependencies installed"
.DEFAULT_GOAL := help