From e3c1e11b88121b66ffc672844f87725f8a42f59d Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 28 Jul 2017 11:21:55 +0100 Subject: [PATCH] update build.sh Former-commit-id: 97a6b53ace70ca68880ebc2dc5b5fafd8e8f12a8 [formerly 27d7c953391bafe9bb1139413953419bf87f73a9] [formerly 60a6c7bf2606edfbb2968885db90186926365a5e [formerly 81b1e8d4305e7dd019cd8a6bb70b3a3c76a62283]] Former-commit-id: 5c76a0d95d78292c1ef046320f1d889b0caf349e [formerly fe536d54d494d38c38c79465af5acefc91ddbdb0] Former-commit-id: 8901073c535bc9f1537402fd565324e638a757f3 --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.sh b/build.sh index 4203a381..71698359 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,15 @@ #!/bin/bash + +# Install rice tool if not present +if ! [ -x "$(command -v rice)" ]; then + go get github.com/GeertJohan/go.rice/rice +fi + +# Clean the dist folder and build the assets rm -rf assets/dist npm run build + +# Embed the assets using rice rice embed-go cd ./caddy/hugo rice embed-go