add package script

This commit is contained in:
Bruno Windels 2020-08-18 12:17:03 +02:00
parent 520dac7cec
commit 942edf69c7

7
scripts/package.sh Executable file
View File

@ -0,0 +1,7 @@
VERSION=$(jq -r ".version" package.json)
PACKAGE=hydrogen-web-$VERSION.tar.gz
yarn build
pushd target
tar -czvf ../$PACKAGE ./
popd
echo $PACKAGE