diff options
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |