From 9464bdb499961b5e8ae42dd6c6c4b39dc63d616e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 8 Dec 2020 15:43:53 +0100 Subject: [PATCH] package script --- .gitignore | 1 + scripts/package.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 scripts/package.sh diff --git a/.gitignore b/.gitignore index dd87e2d..df36431 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules build +*.tar.gz diff --git a/scripts/package.sh b/scripts/package.sh new file mode 100755 index 0000000..6fd9eea --- /dev/null +++ b/scripts/package.sh @@ -0,0 +1,7 @@ +VERSION=$(jq -r ".version" package.json) +PACKAGE=matrixto-$VERSION.tar.gz +yarn build +pushd build +tar -czvf ../$PACKAGE ./ +popd +echo $PACKAGE