-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 845 Bytes
/
Makefile
File metadata and controls
36 lines (31 loc) · 845 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
35
36
# Makefile for Project Development
# Default target
.PHONY: help
help:
@echo "Project Development Makefile"
@echo ""
@echo "Usage:"
@echo " make dev - Start development server with Eleventy on port 8080"
@echo " make build - Build the site with Eleventy"
@echo " make help - Show this help message"
# Start development server with Eleventy on port 8080
.PHONY: dev
dev:
@echo "Starting development server with Eleventy on http://localhost:8080"
@echo "Press Ctrl+C to stop"
npx @11ty/eleventy --serve --port 8080
# Build the site with Eleventy
.PHONY: build
build:
@echo "Building site with Eleventy..."
npx @11ty/eleventy
# Install dependencies
.PHONY: install
install:
@echo "Installing dependencies..."
npm install
# Clean build artifacts
.PHONY: clean
clean:
@echo "Cleaning build artifacts..."
rm -rf _site/