From 64df711a5ef9017ad7ad9f513ef369e4833a4a72 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Tue, 19 Nov 2019 13:56:05 +0100 Subject: [PATCH] Add justfile --- justfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..9b7ed24 --- /dev/null +++ b/justfile @@ -0,0 +1,19 @@ +# vim: set ft=make : +root := `pwd` + +# Build static website +build: + tup build + +# Generate dependency graph as PNG file +graph: + tup graph . | dot -Tpng > graph.png + +# Deploy up-to-date website to webserver +deploy: build + rsync --checksum --copy-links -ave 'ssh -p 4242' \ + --exclude-from=rsync_excludes.txt \ + build/* fab@ffreling.com:public_html/ffreling.com/public/ + +preview: build + python -m webbrowser -t "file://{{root}}/build/index.html"