15 lines
423 B
Bash
15 lines
423 B
Bash
#!/usr/bin/env bash
|
|||
|
|
# Removes build artifacts. Pass --all to also remove the emsdk install
|
||
|
|
# (slow to reinstall - kept by default across ordinary cleans).
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||
|
|
|
||
|
|
rm -rf "$ROOT_DIR/vendor" "$ROOT_DIR/build" "$ROOT_DIR/dist"
|
||
|
|
echo "Removed vendor/, build/, dist/"
|
||
|
|
|
||
|
|
if [ "${1:-}" = "--all" ]; then
|
||
|
|
rm -rf "$ROOT_DIR/emsdk"
|
||
|
|
echo "Removed emsdk/"
|
||
|
|
fi
|