-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 860 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 860 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
SHELL := /bin/bash
NPM := npm
VENDOR_DIR = assets/vendor/
JEKYLL := jekyll
PROJECT_DEPS := package.json
.PHONY: all clean install update
all : serve
check:
$(JEKYLL) doctor
$(HTMLPROOF) --check-html \
--http-status-ignore 999 \
--internal-domains localhost:4000 \
--assume-extension \
_site
install: $(PROJECT_DEPS)
$(NPM) install
update: $(PROJECT_DEPS)
$(NPM) update
include-npm-deps:
mkdir -p $(VENDOR_DIR)
cp node_modules/jquery/dist/jquery.min.js $(VENDOR_DIR)
cp node_modules/popper.js/dist/umd/popper.min.js $(VENDOR_DIR)
cp node_modules/bootstrap/dist/js/bootstrap.min.js $(VENDOR_DIR)
cp node_modules/popper.js/dist/umd/popper.min.js.map $(VENDOR_DIR)
cp node_modules/bootstrap/dist/js/bootstrap.min.js.map $(VENDOR_DIR)
build: include-npm-deps
$(JEKYLL) build
serve: include-npm-deps
JEKYLL_ENV=production $(JEKYLL) serve