-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 700 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 700 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
SHELL = /bin/bash
DATE := $(shell date --rfc-3339=seconds)
.PHONY = environment serve lint build test
.RECIPEPREFIX = >
environment:
> @echo -e "\nhugo environment:\n"
> @hugo env
serve: clean
> hugo server \
> --baseURL http://localhost \
> --noHTTPCache --printMemoryUsage --templateMetrics --templateMetricsHints
clean:
> cd public && \
> find . -not -name '.git' -delete
build: clean
> hugo --enableGitInfo --minify
publish: build
> cd public && \
> git add . && \
> git commit -m "chore(update) $(DATE)" && \
> git push origin master && \
> cd .. && \
> git add public && \
> git commit -m "chore(module) update public module to $(DATE)" && \
> git push origin develop