-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 734 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (31 loc) · 734 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
37
38
39
40
41
.PHONY: build dev install-deps clean og-images jekyll-build-precommit
# Build targets
build: node_modules build-css jekyll-build
touch _site/.nojekyll
build-css:
npm run build:css
og-images:
uv run --with pillow,pyyaml python3 scripts/generate_og_images.py
jekyll-build:
RUBYOPT="-E utf-8" bundle exec jekyll build
jekyll-build-precommit:
RUBYOPT="-E utf-8" bundle exec jekyll build --limit_posts 5
# Development
dev:
npm run dev
# Dependencies
node_modules:
npm install
install-deps:
bundle config set path 'vendor/bundle'
bundle install
npm install
# Cleanup
clean:
-rm -rf _site
-rm -rf _build
-rm -rf node_modules
-rm -rf assets/css/styles.css
-rm -rf vendor/bundle
precommit:
pre-commit run --all-files