#!/usr/bin/env bash [[ -e "dist/*" ]] && rm -r dist/* npm run build && \ (cd dist/frontend && tar czf ../cc-data-bundle.tar.gz ./) && \ echo "Done!"