forked from vitessio/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 778 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
HUGO?=npx hugo
DEPLOY_PRIME_URL?=/
production-build: install
$(HUGO) --cleanDestinationDir \
--minify \
--verbose
preview-build: install
$(HUGO) --cleanDestinationDir \
--buildDrafts \
--buildFuture \
--baseURL $(DEPLOY_PRIME_URL) \
--minify
serve: install
$(HUGO) server \
--buildDrafts \
--buildFuture \
--ignoreCache \
--disableFastRender \
--verbose
install:
npm install
clean:
rm -rf public
build: install
$(HUGO) --cleanDestinationDir -e dev -DFE
link-checker-setup:
curl https://raw.githubusercontent.com/wjdp/htmltest/master/godownloader.sh | bash
run-link-checker:
bin/htmltest
check-internal-links: clean build link-checker-setup run-link-checker
check-all-links: clean build link-checker-setup
bin/htmltest --conf .htmltest.external.yml