2018-01-22 08:35:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# 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
|
2018-02-01 13:40:37 +00:00
|
|
|
rm -rf node_modules
|
|
|
|
npm install
|
2018-01-22 08:35:39 +00:00
|
|
|
|
|
|
|
# Embed the assets using rice
|
|
|
|
rice embed-go
|