This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
FoodLoop-Web/bin/build-releases

30 lines
503 B
Text
Raw Permalink Normal View History

#! /bin/bash
2018-04-17 13:17:57 +00:00
set -e
VERSION=`git describe --tags`
if [ ! -d ../WebApp-Releases ]; then
echo "Making new Releases Directory"
mkdir ../WebApp-Releases
fi
echo "Building releases for $VERSION"
echo "Building Prod Release..."
2019-09-09 20:39:58 +00:00
npm run build:prod
tar -czf ../WebApp-Releases/LocalLoop-Web-prod-$VERSION.tar.gz dist
echo "Building Dev Release..."
2019-09-09 20:39:58 +00:00
npm run build:dev
tar -czf ../WebApp-Releases/LocalLoop-Web-dev-$VERSION.tar.gz dist
echo "Cleaning up build artefacts..."
rm -rf dist
echo "Done"