Fix jenkins script / redeployer

and make them re-use the package script rather than doing their
own thing
This commit is contained in:
David Baker 2016-11-08 17:08:01 +00:00
parent c8a6be1454
commit 3b06563960
3 changed files with 13 additions and 15 deletions

View file

@ -2,6 +2,11 @@
set -e
dev=""
if [ "$1" == '-d' ]; then
dev=":dev"
fi
if [ -n "$DIST_VERSION" ]; then
version=$DIST_VERSION
else
@ -9,7 +14,7 @@ else
fi
npm run clean
npm run build
npm run build$dev
mkdir -p dist
cp -r webapp vector-$version
echo $version > vector-$version/version