drop package.json, use yarn instad of npm, add build_in_docker.sh

This commit is contained in:
1138-4EB authored and Henrique Dias committed 2018-08-05 10:58:21 +01:00
1 parent 46b5fa013c
commit f91ee24858
5 files changed
+35 -15

No files matched your search

+16 -5
View File
@@ -1,14 +1,25 @@
#!/bin/bash
#!/bin/sh
set -e
cd $(dirname $0)
# Clean the dist folder and build the assets
if [ ! -d "frontend" ]; then
git clone -b master https://github.com/filebrowser/frontend
fi;
cd frontend
if [ -d "dist" ]; then
rm -rf dist/*
fi;
yarn install
yarn build
cd ..
# 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 node_modules
npm install
# Embed the assets using rice
rice embed-go