forked from niphy/niphy.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (42 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
49 lines (42 loc) · 1.2 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
.PHONY: help install build serve clean test
# Default target
help:
@echo "Available commands:"
@echo " install - Install dependencies (Ruby gems and Node.js packages)"
@echo " build - Build the site for production"
@echo " serve - Start development server with live reload"
@echo " clean - Clean build artifacts"
@echo " test - Run tests and checks"
# Install dependencies
install:
@echo "Installing Ruby dependencies..."
bundle install
@echo "Installing Node.js dependencies..."
npm install
@echo "Dependencies installed successfully!"
# Build for production
build:
@echo "Building site for production..."
bundle exec jekyll build
npm run build:js
@echo "Build completed!"
# Start development server
serve:
@echo "Starting development server..."
bundle exec jekyll serve --config _config.yml,_config.dev.yml --livereload
# Clean build artifacts
clean:
@echo "Cleaning build artifacts..."
rm -rf _site/
rm -rf .sass-cache/
rm -rf .jekyll-cache/
rm -rf node_modules/
rm -rf .bundle/
@echo "Clean completed!"
# Run tests and checks
test:
@echo "Running tests and checks..."
bundle exec jekyll doctor
@echo "Tests completed!"
# Quick start for development
dev: install serve