added new browser tests for editor, now with pathched tests

This commit is contained in:
Mark Gregory
2026-06-25 08:08:05 +01:00
parent b440888ac1
commit 41d0c9b2d1
6 changed files with 85 additions and 11 deletions
Executable
+62
View File
@@ -0,0 +1,62 @@
#!/usr/bin/env bash
###############################################################################
# Project Copy Script
#
# Copies a project while excluding generated and local-only directories.
#
# Excludes:
# - vendor/
# - node_modules/
# - .git/
# - storage/
# - bootstrap/cache/
# - provision/
#
# Usage:
# ./copy-project.sh /path/to/source /path/to/destination
#
###############################################################################
set -euo pipefail
if [ "$#" -ne 2 ]; then
echo "Usage:"
echo " $0 <source> <destination>"
exit 1
fi
SOURCE="$(cd "$1" && pwd)"
DEST="$2"
echo "Source : $SOURCE"
echo "Destination : $DEST"
echo
mkdir -p "$DEST"
echo "Copying..."
rsync -a \
--progress \
--delete \
--exclude=".git/" \
--exclude="vendor/" \
--exclude="node_modules/" \
--exclude="storage/" \
--exclude="bootstrap/cache/" \
--exclude="provision/" \
"$SOURCE/" \
"$DEST/"
echo
echo "Creating required empty directories..."
mkdir -p "$DEST/storage"
mkdir -p "$DEST/bootstrap/cache"
touch "$DEST/storage/.gitkeep"
touch "$DEST/bootstrap/cache/.gitkeep"
echo
echo "Done."