diff options
author | Joris | 2020-02-02 13:53:54 +0100 |
---|---|---|
committer | Joris | 2020-02-02 13:58:19 +0100 |
commit | 0ce8744897b9aa13ea568a6985da9570e4aca90b (patch) | |
tree | 3619508ff9ec5d846c567c3562d05ca77e686c76 /deploy | |
parent | 13d29804ba4bb8d578fb0278ddeb6e187bbafa6f (diff) |
Use zola generator
- Use CSS instead of Haskell with Clay
- Use TypeScript instead of PureScript
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 |