-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (45 loc) · 1.05 KB
/
Makefile
File metadata and controls
59 lines (45 loc) · 1.05 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
.PHONY: install dev build serve clean lint format test help
# Variables
NODE_BIN := node_modules/.bin
BUILD_DIR := build
# Default target
default: help
## install: Install dependencies
install:
npm install
## dev: Start development server with hot reload
dev:
npm run start
## build: Build production documentation
build: lint format
npm run build
## serve: Serve built documentation
serve:
npm run serve
## clean: Clean build artifacts
clean:
npm run clear
rm -rf $(BUILD_DIR)
rm -rf .docusaurus
## lint: Run ESLint
lint:
npm run lint
## lint-fix: Fix ESLint issues
lint-fix:
npm run lint:fix
## format: Format code with Prettier
format:
npm run format
## format-check: Check code formatting
format-check:
npm run format:check
## typecheck: Run TypeScript type checking
typecheck:
npm run typecheck
## test: Run all checks (lint, format, typecheck)
test: lint format-check typecheck
## help: Show this help message
help:
@echo "ReifyDB Documentation Build Commands:"
@echo ""
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'