From 9409cbb98112449bc1373d26180969c2762ed2f8 Mon Sep 17 00:00:00 2001 From: Patrick Gebhardt Date: Sat, 20 Jun 2020 13:04:06 +0200 Subject: [PATCH] Add bundle-frontend.sh --- frontend/bundle-frontend.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 frontend/bundle-frontend.sh diff --git a/frontend/bundle-frontend.sh b/frontend/bundle-frontend.sh new file mode 100644 index 0000000..b6f8d03 --- /dev/null +++ b/frontend/bundle-frontend.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +[[ -e "dist/*" ]] && rm -r dist/* +npm run build && \ +(cd dist/frontend && tar czf ../cc-data-bundle.tar.gz ./) && \ +echo "Done!"