Added script for automating prod and dev builds
This commit is contained in:
parent
78af694c04
commit
10664f0da9
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