From 10664f0da9203772e982b56ebb9ad3db145fc21b Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 19 Sep 2017 10:59:08 +0100 Subject: [PATCH] Added script for automating prod and dev builds --- bin/build-releases | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bin/build-releases diff --git a/bin/build-releases b/bin/build-releases new file mode 100755 index 0000000..0a840d2 --- /dev/null +++ b/bin/build-releases @@ -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"