blob: 86629bab66620515efd3272e14cb398489d6a06c (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
all: clean build
build: clean
@# Concat all CSS files
gulp concat
@# Build the HTML the first time to be ...
HUGO_GULP=0 hugo --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false #1>/dev/null
@# ... spidered by uncss to remove the unnecessary selector rules.
gulp uncss
@# Builds the site again, but this time the minified CSS will be inlined by Hugo.
HUGO_GULP=1 hugo --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false 1>/dev/null
@# Minifies the HTML!
gulp minifyhtml
@# Cleans up.
rm -rf public/gulp.css/
rm -f public/*.css
clean:
rm -rf public
rm -f static/concat.css
rm -rf static/gulp.css
list:
ls public
index:
cat public/index.html
deploy: clean build
@# Deploy to the server!
if [ -d /var/www/www.iamfabulous.de ]; then\
( rsync --delete -avz public/ /var/www/www.iamfabulous.de/ 1>/dev/null 2>/dev/null && \
echo "Success: Site www.iamfabulous.de was built.") || ./error.sh; \
else \
rsync --delete -avze ssh public/ online:/var/www/www.iamfabulous.de/; \
fi
serve:
HUGO_TEST=1 hugo serve
test:
export HUGO_TEST=1 && hugo --ignoreCache --verbose=false
buildmoehring: clean
@# Concat all CSS files
gulp concat
@# Build the HTML the first time to be ...
HUGO_GULP=0 hugo --baseURL=https://www.moehring.guru/ --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false #1>/dev/null
@# ... spidered by uncss to remove the unnecessary selector rules.
gulp uncss
@# Builds the site again, but this time the minified CSS will be inlined by Hugo.
HUGO_GULP=1 hugo --baseURL=https://www.moehring.guru/ --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false 1>/dev/null
@# Minifies the HTML!
gulp minifyhtml
@# Cleans up.
rm -rf public/gulp.css/
rm -f public/*.css
deploymoehring: buildmoehring
@# Deploy to the server!
if [ -d /var/www/www.moehring.guru ]; then\
( rsync --delete -avz public/ /var/www/www.moehring.guru/ 1>/dev/null 2>/dev/null && \
echo "Success: Site www.moehring.guru was built.") || ./error.sh; \
else \
rsync --delete -avze ssh public/ online:/var/www/www.moehring.guru/; \
fi
|