-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (34 loc) · 783 Bytes
/
Makefile
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
SHELL = /bin/bash
JS_DIR = assets/js
export GITHUB_TOKEN
default: install
all: install build-dev
h help:
@egrep '^[a-z -]+:' Makefile
.PHONY: hooks
hooks:
cd .git/hooks && ln -s -f ../../hooks/pre-push pre-push
install-js:
npm install
setup-js:
rm -rf assets/*
mkdir -p $(JS_DIR)
cp node_modules/list.js/dist/* $(JS_DIR)
install-gems:
bundle config set --local path vendor/bundle
bundle install
upgrade:
npm install list.js@latest
bundle update
git status --short
install: install-js setup-js install-gems
fmt:
bundle exec rufo _plugins
s serve: fmt
source .env \
&& bundle exec jekyll serve --trace --livereload
build-dev:
DEBUG=1 source .env \
&& bundle exec jekyll build --trace
build-prod:
JEKYLL_ENV=production bundle exec jekyll build --trace