Merge pull request #19 from Pear-Trading/TBSliver/More-Automation
Added script for automating prod and dev builds
This commit is contained in:
commit
e32d29b310
1 changed files with 23 additions and 0 deletions
23
bin/build-releases
Executable file
23
bin/build-releases
Executable 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"
|
Reference in a new issue