Merge pull request #19 from Pear-Trading/TBSliver/More-Automation

Added script for automating prod and dev builds
This commit is contained in:
Tom Bloor 2017-09-19 15:31:29 +01:00 committed by GitHub
commit e32d29b310

23
bin/build-releases Executable file
View file

@ -0,0 +1,23 @@
#! /bin/bash
VERSION=`git describe --tags`
echo "Building releases for $VERSION"
echo "Building Prod Release..."
ng build --prod
tar -czf ../LocalLoop-Web-prod-$VERSION.tar.gz dist
echo "Building Dev Release..."
ng build --dev
tar -cvzf ../LocalLoop-Web-dev-$VERSION.tar.gz dist
echo "Cleaning up build artefacts..."
rm -rf dist
echo "Done"