forked from rstacruz/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 658 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 658 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
npmbin := ./node_modules/.bin
PORT ?= 3000
# Builds intermediate files. Needs a _site built first though
update: _site critical
# Builds _site
_site:
bundle exec jekyll build
# Builds critical path CSS/JS
critical: _site
node _support/critical.js
# Starts development server
dev:
$(npmbin)/concurrently -k -p command -c "blue,green" \
"make dev-webpack" \
"make dev-jekyll"
dev-webpack:
$(npmbin)/webpack --watch --colors -p
dev-jekyll:
if [ -f _site ]; then \
bundle exec jekyll serve --safe --trace --drafts --watch --incremental --port $(PORT); \
else \
bundle exec jekyll serve --safe --trace --drafts --watch --port $(PORT); \
fi