-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 900 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 900 Bytes
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
.PHONY: install start build deploy clean help
# Development server with legacy OpenSSL support (required for Node.js 17+)
start:
NODE_OPTIONS=--openssl-legacy-provider npm start
# Install dependencies
install:
npm install
# Build for production
build:
NODE_OPTIONS=--openssl-legacy-provider npm run build
# Deploy to GitHub Pages
deploy: build
npx gh-pages -d build
# Clean build artifacts and dependencies
clean:
rm -rf build node_modules
# Reinstall dependencies
reinstall: clean install
# Show help
help:
@echo "Available commands:"
@echo " make install - Install npm dependencies"
@echo " make start - Start development server"
@echo " make build - Build for production"
@echo " make deploy - Build and deploy to GitHub Pages"
@echo " make clean - Remove build artifacts and node_modules"
@echo " make reinstall - Clean and reinstall dependencies"