From 0ce8744897b9aa13ea568a6985da9570e4aca90b Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 2 Feb 2020 13:53:54 +0100 Subject: Use zola generator - Use CSS instead of Haskell with Clay - Use TypeScript instead of PureScript --- deploy | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 deploy (limited to 'deploy') diff --git a/deploy b/deploy new file mode 100755 index 0000000..43c3adf --- /dev/null +++ b/deploy @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -e + +# Cleanup +rm -rf public +rm -f static/main.js +rm -f static/main.js.map + +# Build JavaScript +tsc --pretty --removeComments --strict --noUnusedLocals --noUnusedParameters --noImplicitReturns main.ts --outFile main-big.js +closure-compiler main-big.js --js_output_file static/main.js +rm main-big.js + +# Build site +zola build + +# Transfer +rsync -avzh public/ guyonvarch.me:/var/www/cooking.guyonvarch.me --delete -- cgit v1.2.3